Ad
Log in to vote
0

Stopping the Player from Using the Mouse?

Asked by 3 years ago

I'm working on a camera system for my game, where the camera sits in one spot and follows the player. I have tried setting the camera to Watch, but the player can still use the right mouse button and move the camera manually. Is there any way to stop the player from scrolling or using the right mouse button to move the camera?

Here's the code I used just for the camera aspect:

cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
cam.CameraType = ("Watch")
cam.FieldOfView = 60
cam.CFrame = CFrame.new(-19.3, 21.6, 7.6)
0
Trying hiding the mouse, so they won't know where their mouse is: http://wiki.roblox.com/index.php?title=API:Class/UserInputService/MouseIconEnabled thesit123 503 — 3y
0
It's already hidden, what I mean is that the player can just hold down the right mouse button and move their mouse around to move the camera. iamarobloxfan 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

there r multible ways to do this, u can use render step and set the camera cframe (when in scriptable mode ) to ur desired offset above the humanoid root part

Ad

Answer this question