Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Stopping the Player from Using the Mouse?

Asked by 6 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 509 — 6y
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 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 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