
2.0k Views
2.5k Executions
Lock Position
Universal Script 📌
styear100K executions
8 months ago
Please login to perform these actions:Does it work?
No reports yetNo 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
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
0Log in to join the conversation. Login
No comments yet. Be the first!
