how to stop a renderstepped loop in lua code example
Example: how to stop a renderstepped loop in lua
local runServ = game:GetService("RunService")
runServ:BindToRenderStep("test", Enum.RenderPriority.Camera.Value, function()
print("ran")
end)
wait(2)
runServ:UnbindFromRenderStep("test")