Answers for "how to stop a renderstepped loop in lua"

Lua
1

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")
Posted by: Guest on October-15-2020

Browse Popular Code Answers by Language