I am making a game where if ur mouse is on the left or right, the camera is slightly rotated to match the location of the mouse. Can someone help me make this script to help me accomplish this task?... Thanks!
Can Someone Help Me Make A Script That Moves The Camera With The Mouse?
1 answer
To rotate the camera independently, you would probably want to override any existing camera scripts by setting the type to custom. You can keep the camera offsetted to the character using stuff from this article, and using UserInputService:GetMouseLocation(), you can fetch the Vector2 of the mouse. Reading up on CFrame rotation will allow you to handle the rotation.
I would honestly rather not be linking articles and being unable to provide a clear answer, but I can't do that unless you're giving me a specific problem just an fyi.
2 comments
I am new to lua and I dont understand any of this
Then unfortunately this is simply too complicated for you to make at the moment, you can either continue and likely fail, or get back to learning the basics of lua.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This isn't a request site. You may want to read up on this: https://developer.roblox.com/en-us/articles/Camera-manipulation