Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my camera glitching out when I move my mouse?

Asked by 5 years ago

I'm trying to make a camera system where the camera looks wherever the players mouse. But the camera keeps moving to fast and glitching.

 R.RenderStepped:connect(function()

Cam.CFrame = CFrame.new(CFrame.new(-287.68, 5.328, -66.39).p, M.Hit.p)

end)
0
It's moving fast because every frame it will try to look towards the mouse position. as long as the mouse is not in the exact center, it will move. RubenKan 3615 — 5y

Answer this question