Universal Script πŸ“Œ
1.4k Views
29.5k Executions

Shiftlock script

10K executions
Universal Script πŸ“Œ
boinowee
boinowee10K executions
10 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

It's literally a shiftlock script there's nothing to it

View Raw
-- for PC it's left shift and for console it's buttonR3 which is just your joystick but you press on it



local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local GuiService = game:GetService("GuiService")
local UserGameSettings = UserSettings():GetService("UserGameSettings")

local Player = Players.LocalPlayer
local Camera = workspace.CurrentCamera

-- Constants for Native Look
local SHIFT_LOCK_OFF_IMAGE = "rbxasset://textures/ui/mouseLock_off@2x.png"
local SHIFT_LOCK_ON_IMAGE = "rbxasset://textures/ui/mouseLock_on@2x.png"
local SHIFT_LOCK_CURSOR = "rbxasset://textures/MouseLockedCursor.png"

-- Configuration
local TOGGLE_KEY_PC = Enum.KeyCode.LeftShift
local TOGGLE_BUTTON_CONSOLE = Enum.KeyCode.ButtonR3 -- Right Stick Click
local CAMERA_OFFSET = Vector3.new(1.75, 0, 0) -- The standard Roblox offset

-- State
local isShiftLocked = false
local isMobile = UserInputService.TouchEnabled and not UserInputService.MouseEnabled

-- UI Variables (Mobile Only)
local shiftLockGui, shiftLockButton

--------------------------------------------------------------------------------
-- CORE FUNCTIONS
--------------------------------------------------------------------------------

local function setShiftLockState(active)
    isShiftLocked = active
    
    local character = Player.Character
    local humanoid = character and character:FindFirstChild("Humanoid")
    


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
33.0k
298.1k
Bumped 27 minutes ago
Script hub
23.6k
5.2k
Bumped 27 minutes ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
174
527
Bumped 56 minutes ago
Universal Script πŸ“Œ
1.6k
30.2k
Bumped 57 minutes ago
Script hub
4.1M
558.5k
Bumped 1 hour ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 2 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 3 hours ago