#Shiftlock Issues (idek if possible)

5 messages · Page 1 of 1 (latest)

stray cove
#

I am first, trying to make it so you are in shiftlock when you first join, and until you leave (forever), Second, I want a custom Shiftlock Crosshair.

#

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

earnest pilot
#
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