How i can change the default shiftlock position on my game?, like this
SHIFT LOCK ON :
It changes the camera position behind the character like that
How i can change the default shiftlock position on my game?, like this
SHIFT LOCK ON :
It changes the camera position behind the character like that
It’s not possible to change the ROBLOX shift lock offset, you will have to create your own custom shift lock module/script.
I don’t know how I did this, but I somehow kept the mouse on the player’s head. So, the camera is looking at the player’s head, but with shift lock on, it doesn’t turn to the side. I’m not sure how I achieved this, and I’m trying to fix it
I finally found out which code caused the issue; I’m sending it to you.
local waveValueY = bobSettings.amplitude * math.sin(2 * math.pi * bobSettings.frequency * (tick() (Humanoid.WalkSpeed / 24)))
local bob = Vector3.new(0, waveValueY, 0)
Humanoid.CameraOffset = Humanoid.CameraOffset:Lerp(bob, 1 - 0.1 ^ deltaTime)