Universal Script 📌
143.9k Views

Mobile Shiftlock

Universal Script 📌Uploaded by
2 years ago
Please login to perform these actions:

Description

a shiftlock gui that can be draggable

View Raw
Edited By: Vyperia Download


Comments
3
User profile picture
Moor 2 years ago - Edited
Nameless:(
User profile picture
ewewewe11111 4 months ago
pc wersion local ref = cloneref or function(x) return x; end; local S = function(n) return ref(game:GetService(n)); end; local Plrs, Tw, UIS, RS, Wk, CG = S("Players"), S("TweenService"), S("UserInputService"), S("RunService"), S("Workspace"), S("CoreGui") local plr = Plrs.LocalPlayer -- Utility functions local function NA(i) if not i then return; end i.Name = "\000" i.Archivable = false end local function parentUI(g) if get* then NA(g) g.Parent = get*() return g elseif CG and CG:FindFirstChild("RobloxGui") then NA(g) g.Parent = CG:FindFirstChild("RobloxGui") return g elseif CG then NA(g) g.Parent = CG return g elseif plr and plr:FindFirstChildWhichIsA("PlayerGui") then NA(g) g.Parent = plr:FindFirstChildWhichIsA("PlayerGui") g.ResetOnS* = false return g end return g end local function getParts() local c = plr.Character or plr.CharacterAdded:Wait() local hum, hrp for _, d in ipairs(c:GetDescendants()) do if not hum and d:IsA("Humanoid") then hum = d end if not hrp and d:IsA("BasePart") and d.Name == "HumanoidRootPart" then hrp = d end if hum and hrp then break end end hum = hum or c:WaitForChild("Humanoid") hrp = hrp or c:WaitForChild("HumanoidRootPart") return c, hum, hrp end local function lockMouse(v) if UIS.MouseEnabled then UIS.MouseBehavior = v and Enum.MouseBehavior.LockCenter or Enum.MouseBehavior.Default end end local rotCon, oldAR local function faceCam(h, hrp, v) if rotCon then rotCon:Disconnect(); rotCon = nil end if v then oldAR = h.AutoRotate h.AutoRotate = false rotCon = RS.RenderStepped:Connect(function() local cam = Wk.CurrentCamera if not (hrp and cam) then return end local lv = cam.CFrame.LookVector local flat = Vector3.new(lv.X, 0, lv.Z) if flat.Magnitude > 0.0001
User profile picture
HB_H21 3 months ago
make this not draggable please
Please Login to add a comment.

Tags

Other Scripts