Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.CoreGui
- -- Create TextButton
- local textButton = Instance.new("TextButton")
- textButton.Parent = screenGui
- textButton.Position = UDim2.new(0, 500, 0, 50)
- textButton.Size = UDim2.new(0, 200, 0, 50)
- textButton.BorderSizePixel = 4
- textButton.BackgroundColor3 = BrickColor.Red().Color
- textButton.Active = true
- textButton.Draggable = true
- textButton.TextSize = 32
- textButton.Font = "SciFi"
- textButton.Text = "Run Script !"
- -- Bind function to button click
- textButton.MouseButton1Down:connect(function()
- for i = 1, math.huge, 1 do
- wait(0.5)
- yourtarget = game.Players.LocalPlayer.PlayerGui.ScreenGui.UI.Target.Img.PlayerText
- plr = game.Players:FindFirstChild(yourtarget.Text)
- plr.Character.Head.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,-1,2)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement