Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make your screen spin like holding an arrow key?

Similar to holding the left or right arrow key, how would I make that work?

I'm not very good with cameras sorry!

1 answer

✓ Accepted answer

i believe you'd have to multiply the CFrame of the camera by the angle you'd like it to rotate.

so maybe something this:

local camera = workspace.CurrentCamera;
camera.CameraType  =Enum.CameraType.Scriptable

local angle = CFrame.Angles(0, 0,math.rad(5)) -- a 5degrees rotation on the Z axis
while wait() do
	camera.CFrame = camera.CFrame * angle
end

5 comments

0

Thank you so much! I was getting a bit angry trying to figure out how to do it

0

np

0

Hey, I used your script and when I die the camera kinda went crazy

0

Nvm, I fixed it

0

ok lol

This discussion is preserved as it was. New answers, comments, and votes are closed.