Description:
I need a script, that can take the camera, no matter how it’s angled, and rotate it up and down and around the y axis. And move with the wasd keys. NOTE: It can’t be done with roblox camera scripts, I don’t use those.
This sounds like a simple thing but I can’t get it to work. Remember, it has to start from the cameras CFrame.
Reward:
Whatever sum Robux we both find appropriate.
You need to find the angle around Y axis, and the pitch angle (atan2 and asin, using the unit vector direction of camera from player, I think (x,z for first, y for second))
Then WASD just change those for the duration theyre down.
Then do the same math to go back from angles to camera direction, and put the camera there pointing at the player with the regular CFrame.new(from, to) constructor.
If the camera must rotate with the player without WASD, just find the angle of the player and subtract it from the initial Y angle, and add it to the Y angle when placing the camera down (so the angles WASD operates on are relative to player space)
I do get the general idea of execution but what I requested is someone who can script the whole thing for me so I can focus on other matters. Thanks for the hints tho.