Advertisement
justneed

Waypoint GUI

Nov 23rd, 2024 (edited)
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.83 KB | Gaming | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local hum = plr.Character.Humanoid
  3. local hrp = plr.Character.HumanoidRootPart
  4.  
  5. local screen  = Instance.new("ScreenGui")
  6. screen.Parent = plr.PlayerGui
  7. screen.Name   = "Waypoint"
  8.  
  9. local frame            = Instance.new("Frame")
  10. frame.Parent           = screen
  11. frame.Size             = UDim2.new(0, 250, 0, 250)
  12. frame.BackgroundColor3 = Color3.fromRGB(255,105,180)
  13. frame.Position         = UDim2.new(0, 230, 0, 200)
  14.  
  15. frame.Active     = true
  16. frame.Selectable = true
  17. frame.Draggable  = true
  18.  
  19. local btn    = Instance.new("TextButton")
  20. btn.Parent   = frame
  21. btn.Size     = UDim2.new(0, 20, 0, 20)
  22. btn.Position = UDim2.new(0, 224, 0, 5)
  23. btn.Text     = "X"
  24. btn.TextSize = 8
  25.  
  26. btn.MouseButton1Click:Connect(function()
  27.     screen:Destroy()
  28. end)
  29.  
  30. local text             = Instance.new("TextBox")
  31. text.Parent            = frame
  32. text.Text              = ""
  33. text.Size              = UDim2.new(0, 90, 0, 40)
  34. text.PlaceholderText   = "Waypoint\nName"
  35. text.PlaceholderColor3 = Color3.fromRGB(45,45,45)
  36. text.TextColor3        = Color3.new(0,0,0)
  37. text.TextSize          = 10
  38. text.Position          = UDim2.new(0, 80, 0, 65)
  39. text.ClearTextOnFocus  = false
  40.  
  41. local btn2            = Instance.new("TextButton")
  42. btn2.Parent           = frame
  43. btn2.Size             = UDim2.new(0, 90, 0, 40)
  44. btn2.Position         = UDim2.new(0, 80, 0, 110)
  45. btn2.Text             = "Set"
  46. btn2.TextSize         = 12
  47. btn2.BackgroundColor3 = Color3.fromRGB(124,252,0)
  48.  
  49. local btn3            = Instance.new("TextButton")
  50. btn3.Parent           = frame
  51. btn3.Size             = UDim2.new(0, 90, 0, 40)
  52. btn3.Position         = UDim2.new(0, 80, 0, 155)
  53. btn3.Text             = "Remove"
  54. btn3.TextSize         = 12
  55. btn3.BackgroundColor3 = Color3.fromRGB(220,20,60)
  56.  
  57. local btn4            = Instance.new("TextButton")
  58. btn4.Parent           = frame
  59. btn4.Size             = UDim2.new(0, 90, 0, 40)
  60. btn4.Position         = UDim2.new(0, 80, 0, 200)
  61. btn4.Text             = "Teleport\nto"
  62. btn4.TextSize         = 12
  63. btn4.BackgroundColor3 = Color3.fromRGB(0,191,255)
  64.  
  65. local label    = Instance.new("TextLabel")
  66. label.Parent   = frame
  67. label.Text     = "Made by x0y0zkidd"
  68. label.TextSize = 21
  69. label.Position = UDim2.new(0, 115, 0, 28)
  70. label.Font     = Enum.Font.GothamBold
  71.  
  72. btn2.MouseButton1Click:Connect(function()
  73.     local p        = Instance.new("Part")
  74.     p.Parent       = plr.Character
  75.     p.Name         = text.Text
  76.     p.Transparency = 0.9
  77.     p.CFrame       = game.Players.LocalPlayer.Character.RightFoot.CFrame
  78.     p.Anchored     = true
  79.     p.CanCollide   = false
  80.     p.BrickColor   = BrickColor.new("Pink")
  81. end)
  82.  
  83. btn3.MouseButton1Click:Connect(function()
  84.     plr.Character[text.Text]:Destroy()
  85. end)
  86.  
  87. btn4.MouseButton1Click:Connect(function()
  88.     hrp.CFrame = plr.Character[text.Text].CFrame
  89. end)
  90.  
  91. screen.ResetOnSpawn = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement