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

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

0

I am new to lua and I dont understand any of this

0

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.