#Shiftlock Issues (idek if possible)
5 messages · Page 1 of 1 (latest)
Or if shift locking does not work, I wan a camera aim system that works as a shift lock
But dont know how to do either
local Player = game.Players.LocalPlayer
local PlayerModule = require(Player:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
local function enableShiftLock()
Player.DevEnableMouseLock = true
Player.DevComputerMovementMode = Enum.DevComputerMovementMode.ClickToMove
Player.DevTouchMovementMode = Enum.DevTouchMovementMode.ClickToMove
Controls:Enable()
Controls:SwitchToMouseLock()
end
local function preventShiftLockToggle()
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
Controls:SwitchToMouseLock()
end
end)
end
enableShiftLock()
preventShiftLockToggle()
Try that