Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make this fade instead of it just popping up?

wait(10)
for m = 0, 60, 0.001 do
	game.Lighting.Sky.MoonAngularSize = m
end

I don't know how to do that.

2 comments

0

This is just a test btw.

0

Im pretty sure "for i=1,#" only works for integers

1 answer

You should do: local RunService = game:GetService("RunService") at the top of your script, and add to the loop:

for m = 0, 60, 0.001 do
    game.Lighting.Sky.MoonAngularSize = m
    RunService.RenderStepped:Wait()	
end

1 comment

0

Doesn't seem to work. Can you test it again?

This discussion is preserved as it was. New answers, comments, and votes are closed.