Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local NAME = Instance.new("TextBox")
- local TP = Instance.new("TextButton")
- local HAX = game.Players.LocalPlayer
- -- Properties
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- NAME.Name = "NAME"
- NAME.Parent = ScreenGui
- NAME.BackgroundColor3 = Color3.new(1, 0, 0)
- NAME.BorderSizePixel = 0
- NAME.Size = UDim2.new(0, 200, 0, 50)
- NAME.Font = Enum.Font.SourceSans
- NAME.FontSize = Enum.FontSize.Size14
- NAME.Text = "Player Name"
- NAME.TextScaled = true
- NAME.TextSize = 14
- NAME.TextWrapped = true
- TP.Name = "TP"
- TP.Parent = ScreenGui
- TP.BackgroundColor3 = Color3.new(1, 0, 0)
- TP.BorderSizePixel = 0
- TP.Position = UDim2.new(0, 0, 0, 50)
- TP.Size = UDim2.new(0, 200, 0, 50)
- TP.Font = Enum.Font.SourceSans
- TP.FontSize = Enum.FontSize.Size14
- TP.Text = "Teleport"
- TP.TextScaled = true
- TP.TextSize = 14
- TP.TextWrapped = true
- TP.MouseButton1Down:connect(function()
- local TRGT = NAME.Text
- local PLEYER = game.Players:FindFirstChild(TRGT)
- while PLEYER and not PLEYER.Character do wait() end
- game:GetService('TeleportService'):Teleport(912599093, PLEYER.Character)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement