Similar to holding the left or right arrow key, how would I make that work?
I'm not very good with cameras sorry!
Similar to holding the left or right arrow key, how would I make that work?
I'm not very good with cameras sorry!
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
Thank you so much! I was getting a bit angry trying to figure out how to do it
np
Hey, I used your script and when I die the camera kinda went crazy
Nvm, I fixed it
ok lol