did you call the func in the main cycle?
if yes, you have to call it out of the main cycle...
ex:
global a = 0
while not a > 20
LoadSkyBox()
a = a + 1
wend
You'll have about 20 skies...
global a = 0
LoadSkyBox()
while not a >20
a = a + 1
wend
You'll have one sky