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

Any way I can use ShiftLock's rotation without shiftlock?

Asked by
Edenojack 171
8 years ago

I'd like to use ShiftLock's RootPart rotation in my game, however I can't seem to find any documentation of how it works exactly. It rotates the Player's RootPart in the Direction of the camera by activating something in the CameraController, but I can't seem to find in any of the StarterPlayerScripts how it actually manages to rotate.

Anyone know at all?

0
So far I've dug this up in the wiki: http://wiki.roblox.com/index.php?title=API:Class/UserGameSettings/RotationType, the second is the type I'm after, now I'm trying to find how to manipulate it. Edenojack 171 — 8y

1 answer

Log in to vote
0
Answered by
Edenojack 171
8 years ago

Alright: found it. After looking at the Wiki, I then looked in the CameraScript to determine how I can use it. It needs the following code to change.

local Settings = UserSettings()
local GameSettings = Settings.GameSettings
GameSettings.RotationType = Enum.RotationType.CameraRelative

and boom. It's set as CameraRelative.

0
Also worth mentioning, turn auto-rotate in the Humanoid off. Get some pretty wierd Movement bugs otherwise. Edenojack 171 — 8y
Ad

Answer this question