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

How do you use "RenderStepped()"?

I'm curious on how to use RenderStepped() because of this game that fascinates me: http://www.roblox.com/Cold-Fusion-The-Power-Of-RenderStepped-place?id=2169503

Plus, I can't really understand the ROBLOX Wiki and can't find it in the scripting glossary. Help? (Can you please use a script for an example that is simple?)

If you can find a useful answer, that's great! How about links?

1 answer

✓ Accepted answer

RenderStepped is like a wait(0.0001) thing. So that means it calls that function like every mili-second, So it can be used for a replacement of while wait() do.

game:GetService("RunService").RenderStepped:connect(function()
--Code
end)

2 comments

0

Thx, so it like does a frame in like 1/60 of a second?

0

Yeah

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