Universal Script 📌
3.4k Views
1.6k Executions

Shiftlock for PC

Universal Script 📌
bruwo
bruwo10K executions
9 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

press shift works on pc

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")

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

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "CustomShiftlockGUI"
ScreenGui.ResetOnSpawn = false

if pcall(function() ScreenGui.Parent = game:GetService("CoreGui") end) then
else
    ScreenGui.Parent = Player:WaitForChild("PlayerGui")
end

local Crosshair = Instance.new("ImageLabel")
Crosshair.Name = "ShiftlockCursor"
Crosshair.Parent = ScreenGui
Crosshair.BackgroundTransparency = 1
Crosshair.Position = UDim2.new(0.5, 0, 0.5, 0)
Crosshair.AnchorPoint = Vector2.new(0.5, 0.5)
Crosshair.Size = UDim2.new(0, 32, 0, 32)
Crosshair.Image = "rbxasset://textures/MouseLockedCursor.png" 
Crosshair.Visible = false

local shiftLockEnabled = false

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if not gameProcessed and input.KeyCode == Enum.KeyCode.LeftShift then
        shiftLockEnabled = not shiftLockEnabled
        
        if shiftLockEnabled then
            Crosshair.Visible = true
            UserInputService.MouseIconEnabled = false
            UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
        else
            Crosshair.Visible = false
            UserInputService.MouseIconEnabled = true


Comments

2
Log in to join the conversation. Login
roadblockscherries's profile picture
roadblockscherries9 months ago

wow bro you changed my life wowowow thanks now i am harkinininan with fe bipods thanks

2
hjamesmoz247's profile picture
hjamesmoz2473 months ago

thanks

1

Tags

More universal scripts

See all
Universal Script 📌
1.6k
6.1k
Bumped 28 minutes ago
Key System
Script hub
51
0
Approved 50 minutes ago
Paid

Script hub

anmultv hub

Universal Script 📌
26
4
Approved 56 minutes ago
Universal Script 📌
1.3k
856
Bumped 2 hours ago
Key System
Script hub
111.8k
160.0k
Bumped 2 hours ago
Key System
Universal Script 📌
74
5
Approved 3 hours ago
Universal Script 📌
133
35
Approved 4 hours ago
Universal Script 📌
170
116
Approved 4 hours ago