Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
wait(10)
for m = 0, 60, 0.001 do
    game.Lighting.Sky.MoonAngularSize = m
end

I don't know how to do that.

0
This is just a test btw. Hwk3rAlt 14 — 4y
0
Im pretty sure "for i=1,#" only works for integers Benbebop 1049 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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
0
Doesn't seem to work. Can you test it again? Hwk3rAlt 14 — 4y
Ad

Answer this question