Universal Script πŸ“Œ
2.3k Views
254.7k Executions

Shift Lock For Mobile Remade Definitive

100K executions
Universal Script πŸ“Œ
supremodarkhub
supremodarkhub100K executions
5 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

πŸ”’Shift Lock For MobileπŸ“± (Remade Definitive) (Modern design based on Roblox's own control design, colors, etc.)🎯 πŸ“œShift Lock for Mobile, remade and updated. Works in Roblox Studio, Studio Lite, and any future versions that come out. Just create a simple LocalScript in Roblox Studio, inside StarterPlayerScripts. And yeah, it obviously works with executors too.

View Raw
local players = game:GetService("Players")
local runService = game:GetService("RunService")
local userInputService = game:GetService("UserInputService")

local localPlayer = players.LocalPlayer
local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()

local root = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local camera = workspace.CurrentCamera

local iconOff = "rbxassetid://77288664952024"
local iconOn = "rbxassetid://140416355442805"

local cursorImg = "rbxasset://textures/MouseLockedCursor.png"

local isTouchDevice = userInputService.TouchEnabled

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "shiftlockgui"
screenGui.ResetOnSpawn = false
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.IgnoreGuiInset = true
screenGui.Parent = localPlayer:WaitForChild("PlayerGui")

local customIconId = ""
local customCursorId = ""

if customIconId ~= "" then
	iconOff = customIconId
	iconOn = customIconId
end

if customCursorId ~= "" then
	cursorImg = customCursorId
end

local buttonPosition = UDim2.new(0.86, 0, 0.93, 0)
local buttonSize = UDim2.new(0, 44, 0, 44)



Comments

1
Log in to join the conversation. Login
Agax's profile picture
Agax5 months ago

Thanks

1