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

Are there any substitutes for .RenderStepped?

I'd like to use something similiar to .RenderStepped in a normal script - problem is that other alternatives are very choppy, like this:

while wait() do
x.CFrame = y.CFrame *CFrame.new(0,0,5)
end

1 answer

Stepped

local rs = game:GetService("RunService").Stepped
while rs:Wait() do
	x.CFrame = y.CFrame *CFrame.new(0,0,5)
end

BindToRenderStep (local only)

local rs = game:GetService("RunService")
rs:BindToRenderStep("name", 100, function()
	x.CFrame = y.CFrame *CFrame.new(0,0,5)
end)

2 comments

0

Yeah, but I can't use it in a serverside script.

0

You can use Stepped in a serverside script

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