---
title: "Shiftlock script by boinowee | Universal Roblox Script - ScriptBlox"
description: "Shiftlock script for any Roblox game: It's literally a shiftlock script there's nothing to it"
canonical_url: "https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993"
meta:
  "og:description": "Shiftlock script for any Roblox game: It's literally a shiftlock script there's nothing to it"
  "og:image": "https://scriptblox.com/images/script/0-1771353544959.png"
  "og:title": "Shiftlock script by boinowee | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Shiftlock script for any Roblox game: It's literally a shiftlock script there's nothing to it"
  "twitter:image": "https://scriptblox.com/images/script/0-1771353544959.png"
  "twitter:title": "Shiftlock script by boinowee | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1771353544959.png)

# **Shiftlock script**

10K executions

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![boinowee](https://scriptblox.com/images/user-default.webp) [boinowee](https://scriptblox.com/u/boinowee)10K executions**

10 months ago

[**Get an executor**](https://scriptblox.com/executors?kind=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](https://scriptblox.com/raw/Universal-Script-Shiftlock-script-112993)

```
-- 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 **](https://scriptblox.com/login?redirect=/script/Universal-Script-Shiftlock-script-112993)

No comments yet. Be the first!

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993#script","url":"https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993","name":"Shiftlock script","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"boinowee","url":"https://scriptblox.com/u/boinowee"},"datePublished":"2026-02-17T18:39:04.981Z","image":"https://scriptblox.com/images/script/0-1771353544959.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993#webpage","@type":"WebPage","description":"Shiftlock script for any Roblox game: It's literally a shiftlock script there's nothing to it","name":"Shiftlock script by boinowee | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Shiftlock-script-112993#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Shiftlock script","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
