Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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?

1 comment

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.

1 answer

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.

1 comment

0

Also worth mentioning, turn auto-rotate in the Humanoid off. Get some pretty wierd Movement bugs otherwise.

This discussion is preserved as it was. New answers, comments, and votes are closed.