So I’m having this problem where every time you UnbindToRenderStepped
, it repetitively messages me:
RunService:fireRenderStepEarlyFunctions unexpected error while invoking callback: UnbindToRenderStep is not a valid member of RunService "Run Service"
This is the code by the way:
local function changePlrToCamera(player)
camera.CFrame = player.Character:WaitForChild("Head").CFrame * (CFrame.new(0,12,3) * CFrame.Angles(-45,0,0))
end
function lookAtPlayer2(player)
runService:BindToRenderStep("TempBind", 1, function()
changePlrToCamera(player)
if value == true then -- stop it
runService:UnbindToRenderStep("TempBind")
end
end)
end
Any thoughts or messages would be helpful!