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
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
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Yeah, but I can't use it in a serverside script.
You can use Stepped in a serverside script