When was shiftlock was made in roblox12/7/2023 ![]() Here you must modify the “CameraOffset” Vector3Value, or add one if you can’t find it. Now, If you also want the mouse/camera to be centered on the character, and not offset to the right, you can change the offset in a different module within CameraModule, called “MouseLockController” (Keep in mind that as a consequence of editing this function, first person will also no longer have rotation) SavedRotationType = UserGameSettings.RotationTypeĪs the time of writing this it can be found around line ~312, and we must only change the last two lines of code to the following: If UserGameSettings.RotationType ~= lastRotationTypeOverride then ![]() The function to look for is the following: function tRotationTypeOverride(value: Enum.RotationType) Now, to remove the shift lock rotation we must edit a module within “CameraModule”, named “CameraUtils”, as this module houses a function that overrides the behavior of the player’s rotation. PlayerModule pasted to StarterPlayerScripts) You must copy this modulescript to your clipboard, exit the playtest, and paste it to StarterPlayer>StarterPlayerScripts in order to make edits to it that will reflect on your final game. These modules can be found by quickly running a playtest and searching in your player’s PlayerScripts Folder. This is caused by the Player’s “PlayerModule” module-scripts, which are added by default on every experience in Roblox.ĭocumentation about these modules is scarce, and understanding what to look for and where can be a challenging task for any developer who was never dealt with these before. As all of you may know, enabling shift-lock causes the player’s mouse to lock to the center of the screen, as well as make the character point towards the mouse’s direction.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |