So I have a tool, which I want shiftlock to enable when the player equips it. I tried to mess around with the player scripts and things, but it doesn’t work much. Is there a simple script which does that?
rogchamp
(pasta)
August 12, 2019, 4:33pm
#2
There’s already been a couple of questions like this that have been answered.
Inside function CameraModule:Update(dt)
for the CameraModule, you can force shiftlock automatically on
by putting the following code into it
self.activeCameraController:SetIsMouseLocked(true)
If you want rotation you change you can also
GameSettings.RotationType = Enum.RotationType.CameraRelative
or
GameSettings.RotationType = Enum.RotationType.MovementRelative
Using this you can also set up certain conditions for when and if the camera will be forced in situations.
Also you can turn of…
5 Likes