How to Make Roblox Camera Follow Mouse

avatarSinkingDuel2 years ago
Best Answer
avatarCreatingGulf2 years ago

Just use a LocalScript in Roblox Studio. Set MouseBehavior to 'LockCurrentPosition' and update the Camera.CFrame to the Mouse's Hit.Position. It's like magic when it works!

Play Games.Earn points.Get gift cards!

PB

PB

Playback Rewards

4.5 Star Rating(13.7k)
Silly Arrow
User avatarUser avatarUser avatarUser avatar

500k players and counting...

More Answers

avatarNoticingPuff2 years ago

You can put this in a LocalScript to make the camera follow the mouse: `local player = game.Players.LocalPlayer; local mouse = player:GetMouse(); game:GetService('RunService').RenderStepped:Connect(function() game.Workspace.CurrentCamera.CFrame = CFrame.new(game.Workspace.CurrentCamera.CFrame.Position, mouse.Hit.Position); end)`. BOOM, done!


avatarQuestioningVale2 years ago

From my own experience, create a LocalScript, get the player鈥檚 mouse, and bind it with RenderStepped to update Camera.CFrame. It鈥檚 pretty straightforward once you get the hang of it.


avatarBakingAlert2 years ago

Honestly, just use a pre-made script if you're not comfortable with coding. Plenty are available on the developer forums or in the toolbox!

馃憖 If you like Roblox...

avatarDiego3 hours ago
If you're a Roblox player looking for extra robux, you need to download the Playbite app!

Playbite is like an arcade in your phone: you get to play all kinds of fun and simple games, compete with friends and others, and win cool prizes from all your favorite brands!

One of those prizes is the Roblox gift card, which you can win and use to get robux essentially for free!

In case you鈥檙e wondering, this is how it works: 

Playbite makes money from (not super annoying) ads and (totally optional) in-app purchases. The app then uses that money to reward players like you with prizes!

Download Playbite for free, available on the App Store and Play Store!

The brands referenced on this page are not sponsors of the rewards or otherwise affiliated with this company. The logos and other identifying marks attached are trademarks of and owned by each represented company and/or its affiliates. Please visit each company's website for additional terms and conditions.

Add an Answer