I just want an example because this doesn't work
game:GetService("RunService"):BindToRenderStep(function()
Running = true
end)
while true do
If Running == false then
game:GetService("RunService"):UnBindToRenderStep(function()
Running = nil
end
end
I just want an example because this doesn't work
game:GetService("RunService"):BindToRenderStep(function()
Running = true
end)
while true do
If Running == false then
game:GetService("RunService"):UnBindToRenderStep(function()
Running = nil
end
end
local function onRenderStep()
local subjectPosition = cameraSubject.Torso.CFrame
local cameraPosition = game.Workspace.Klamman.Torso.CFrame + offset
camera:Interpolate(cameraPosition, subjectPosition, 1)
end
runService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, onRenderStep)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
How do I unbind it?
run:UnbindToRenderStep("Camera"). Just call the run service, use the unbind function, and use the name you gave in the first parameter of the BindToRenderStep function.