Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local hum = plr.Character.Humanoid
- local hrp = plr.Character.HumanoidRootPart
- local screen = Instance.new("ScreenGui")
- screen.Parent = plr.PlayerGui
- screen.Name = "Waypoint"
- local frame = Instance.new("Frame")
- frame.Parent = screen
- frame.Size = UDim2.new(0, 250, 0, 250)
- frame.BackgroundColor3 = Color3.fromRGB(255,105,180)
- frame.Position = UDim2.new(0, 230, 0, 200)
- frame.Active = true
- frame.Selectable = true
- frame.Draggable = true
- local btn = Instance.new("TextButton")
- btn.Parent = frame
- btn.Size = UDim2.new(0, 20, 0, 20)
- btn.Position = UDim2.new(0, 224, 0, 5)
- btn.Text = "X"
- btn.TextSize = 8
- btn.MouseButton1Click:Connect(function()
- screen:Destroy()
- end)
- local text = Instance.new("TextBox")
- text.Parent = frame
- text.Text = ""
- text.Size = UDim2.new(0, 90, 0, 40)
- text.PlaceholderText = "Waypoint\nName"
- text.PlaceholderColor3 = Color3.fromRGB(45,45,45)
- text.TextColor3 = Color3.new(0,0,0)
- text.TextSize = 10
- text.Position = UDim2.new(0, 80, 0, 65)
- text.ClearTextOnFocus = false
- local btn2 = Instance.new("TextButton")
- btn2.Parent = frame
- btn2.Size = UDim2.new(0, 90, 0, 40)
- btn2.Position = UDim2.new(0, 80, 0, 110)
- btn2.Text = "Set"
- btn2.TextSize = 12
- btn2.BackgroundColor3 = Color3.fromRGB(124,252,0)
- local btn3 = Instance.new("TextButton")
- btn3.Parent = frame
- btn3.Size = UDim2.new(0, 90, 0, 40)
- btn3.Position = UDim2.new(0, 80, 0, 155)
- btn3.Text = "Remove"
- btn3.TextSize = 12
- btn3.BackgroundColor3 = Color3.fromRGB(220,20,60)
- local btn4 = Instance.new("TextButton")
- btn4.Parent = frame
- btn4.Size = UDim2.new(0, 90, 0, 40)
- btn4.Position = UDim2.new(0, 80, 0, 200)
- btn4.Text = "Teleport\nto"
- btn4.TextSize = 12
- btn4.BackgroundColor3 = Color3.fromRGB(0,191,255)
- local label = Instance.new("TextLabel")
- label.Parent = frame
- label.Text = "Made by x0y0zkidd"
- label.TextSize = 21
- label.Position = UDim2.new(0, 115, 0, 28)
- label.Font = Enum.Font.GothamBold
- btn2.MouseButton1Click:Connect(function()
- local p = Instance.new("Part")
- p.Parent = plr.Character
- p.Name = text.Text
- p.Transparency = 0.9
- p.CFrame = game.Players.LocalPlayer.Character.RightFoot.CFrame
- p.Anchored = true
- p.CanCollide = false
- p.BrickColor = BrickColor.new("Pink")
- end)
- btn3.MouseButton1Click:Connect(function()
- plr.Character[text.Text]:Destroy()
- end)
- btn4.MouseButton1Click:Connect(function()
- hrp.CFrame = plr.Character[text.Text].CFrame
- end)
- screen.ResetOnSpawn = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement