"UnbindToRenderStep is not a valid member of RunService "Run Service""

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!

if im not mistaken, the function should be RunService:UnbindFromRenderStep rather than UnbindToRenderStepped

2 Likes

:face_with_hand_over_mouth: Oops. I didn’t even see that. Thank you!

1 Like

haha, it happens to the best of us!

1 Like