Universal Script 📌
2.0k Views
3.0k Executions

Lock Position

Universal Script 📌
styear
styear100K 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

Lock position to lock player position in all games that have auto teleport feature. Very good for afk farm

Updates

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Update script

  4. Script edited: Update script

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

local player = Players.LocalPlayer
local PlayerGui = player:WaitForChild("PlayerGui")

local function getCharacter()
    return player.Character or player.CharacterAdded:Wait()
end

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "LockPositionGui"
ScreenGui.IgnoreGuiInset = true
ScreenGui.ResetOnSpawn = false
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
ScreenGui.Parent = PlayerGui

local CircleBG = Instance.new("ImageLabel")
CircleBG.Size = UDim2.new(0,64,0,64)
CircleBG.AnchorPoint = Vector2.new(1,0)
CircleBG.Position = UDim2.new(1,-20,0,20)
CircleBG.BackgroundTransparency = 1
CircleBG.Image = "rbxassetid://16803802267"
CircleBG.ScaleType = Enum.ScaleType.Stretch
CircleBG.Parent = ScreenGui

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(1,0)
UICorner.Parent = CircleBG

local LockButton = Instance.new("ImageButton")
LockButton.Size = UDim2.new(0.6,0,0.6,0)
LockButton.Position = UDim2.new(0.2,0,0.2,0)
LockButton.BackgroundTransparency = 1
LockButton.Image = "rbxassetid://130543358351438"
LockButton.Parent = CircleBG

local locked = false
local savedCFrame


Comments

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

Tags

More universal scripts

See all
Script hub
16.0k
93.4k
Bumped 46 minutes ago
Key System

Script hub

Kronos New

Universal Script 📌
48.5k
46.7k
Bumped 3 hours ago
Universal Script 📌
1.5k
1.3k
Bumped 6 hours ago
Universal Script 📌
4.2k
56.5k
Bumped 7 hours ago
Universal Script 📌
7.1k
71.8k
Bumped 7 hours ago
Script hub
3.5M
1.2M
Bumped 8 hours ago
Key System