I believe it was a problem with the icon I was using, and that was the issue, but I had encountered another problem where when you use shift lock and walk backwards holding S it will move you side to side super fast on other clients
I’m a little confused, I just tried it out and it works all fine, could you provide a video demonstrating the bug? Also, have you altered the configuration, if you did then, could you send me your current shift lock settings?
hey i have ran into some trouble with your amazing shiftlock module and i was wondering if you could fix it, basically im making a shoulderswap system (a seperate script) with your shiftlock module but everytime i try to change the CameraOffset it does not change and remains the same as the set value in the shiftlock module… i dont know if this is because the cameraoffset is under renderstepped or something like that making it always be the value i pre-set it in the module (also sorry for my bad explanation).
wait ive found the problem its because i set the camera to the head my bad for wasting your time…
I have an issue where the shiftlock doesn’t work as soon as u join the game but when your character dies or resets the shiftlock works again, how can I fix this?
i have the same issue in studio it works just fine but when trying it ingame, the mouse isnt locked at all and it just flies around, any fix for this? @Rixtys99
Are you receiving any errors in the console? If not, then I’ll check when I’m back home.
EDIT: Updated the module, that should fix it.
Are there any errors? Also, if possible could you provide me with a video?
It works now, I appreciate the help, thank you.
hey i got an issue if i set the camera type to scriptable then press shift the camera keeps moving towards the top right
It happens because of Camera.CFrame = (Camera.CFrame * CameraOffsetCFrame)
[Line 124] and when you have your camera type set to scriptable that offset just keeps getting added. I’m not sure how to fix it unless you modify the module yourself to work with your custom camera script.
Thanks i managed to fix it by adding this under line 117
if self.Camera.CameraType == Enum.CameraType.Scriptable then return end;
I have finally made a version of SmoothShiftLock that is paired to the PlayerModule.
Get it here: https://create.roblox.com/marketplace/asset/15929281628/SmoothShiftLock-Module
Also, let me know if there are any bugs that I’ve missed.
This version is broken, I tried to press Shift
but it didn’t work
Check if your ShiftLock is enabled in the roblox settings.
I already disabled shiftlock, it’s still broken
You don’t have to disable ShiftLock, the PlayerModule paired version works exactly as a normal ShiftLock would work, except with some tweaks. And if you still have the old SmoothShiftLock’s server script delete it.
It was doone on an empty baseplate, no old server script
@Qinrir
For a custom head lock, add a local script under the CustomShiftLock script in StarterPlayer
local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.CharacterAdded:Wait()
game.Workspace.Camera.CameraSubject = Character:WaitForChild("Head")
@Qinrir isn’t on that account anymore because it got terminated, He is still in the forums under a different account
also you can use LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
for the Character
variable
and instead of writing game.Workspace.Camera
, use workspace.CurrentCamera
The script even breaks the ability to go first person, and this doesn’t even add head rotation, It just adds focus to the camera