Psykek

Waypoint GUI

Mar 26th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.52 KB | None | 0 0
  1. --waypoint script by koirapallo32#5518 :)
  2.  
  3. local KoiraWaypoints = Instance.new("ScreenGui")
  4. local MainFrame = Instance.new("Frame")
  5. local ScrollingFrame = Instance.new("ScrollingFrame")
  6. local TpTemplate = Instance.new("TextButton")
  7. local NameLabel = Instance.new("TextLabel")
  8. local EditBtn = Instance.new("ImageButton")
  9. local TopLabel = Instance.new("TextLabel")
  10. local CloseBtn = Instance.new("TextButton")
  11. local HideBtn = Instance.new("TextButton")
  12. local AddBtn = Instance.new("ImageButton")
  13. local EditFrame = Instance.new("Frame")
  14. local SettingsLabel = Instance.new("TextLabel")
  15. local ShowBtn = Instance.new("TextButton")
  16. local CloseBtn_2 = Instance.new("TextButton")
  17. local HideBtn_2 = Instance.new("TextButton")
  18. local NameBox = Instance.new("TextBox")
  19. local EditBtn_2 = Instance.new("ImageButton")
  20. local DeleteBtn = Instance.new("TextButton")
  21. local ImageLabel = Instance.new("ImageLabel")
  22.  
  23. KoiraWaypoints.Name = "KoiraWaypoints"
  24. KoiraWaypoints.Parent = game:service'Players'.LocalPlayer.PlayerGui
  25.  
  26. MainFrame.Name = "MainFrame"
  27. MainFrame.Parent = KoiraWaypoints
  28. MainFrame.Active = true
  29. MainFrame.Draggable = true
  30. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  31. MainFrame.BackgroundColor3 = Color3.new(0.396078, 1, 0.486275)
  32. MainFrame.BorderColor3 = Color3.new(0.188235, 0.47451, 0.223529)
  33. MainFrame.Position = UDim2.new(0.100000001, 0, 0.5, 0)
  34. MainFrame.Size = UDim2.new(0, 200, 0, 300)
  35.  
  36. ShowBtn.Name = "ShowBtn"
  37. ShowBtn.Parent = KoiraWaypoints
  38. ShowBtn.AnchorPoint = Vector2.new(0, 1)
  39. ShowBtn.BackgroundColor3 = Color3.new(0.396078, 1, 0.486275)
  40. ShowBtn.BorderColor3 = Color3.new(0.188235, 0.47451, 0.223529)
  41. ShowBtn.Position = UDim2.new(-0.5, 0, 0.899999976, 0)
  42. ShowBtn.Size = UDim2.new(0, 50, 0, 50)
  43. ShowBtn.Font = Enum.Font.SourceSans
  44. ShowBtn.Text = "Show"
  45. ShowBtn.TextColor3 = Color3.new(0, 0, 0)
  46. ShowBtn.TextSize = 14
  47.  
  48. ScrollingFrame.Parent = MainFrame
  49. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  50. ScrollingFrame.BackgroundTransparency = 1
  51. ScrollingFrame.BorderSizePixel = 0
  52. ScrollingFrame.Position = UDim2.new(0, 0, 0.100000001, 0)
  53. ScrollingFrame.Size = UDim2.new(1, 0, 0.899999976, 0)
  54. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 10, 0)
  55. ScrollingFrame.ScrollBarThickness = 6
  56.  
  57. TpTemplate.Name = "TpTemplate"
  58. TpTemplate.Parent = ScrollingFrame
  59. TpTemplate.BackgroundColor3 = Color3.new(0.356863, 0.905882, 0.431373)
  60. TpTemplate.BorderSizePixel = 0
  61. TpTemplate.Size = UDim2.new(1, 0, 0, 25)
  62. TpTemplate.Visible = false
  63. TpTemplate.Font = Enum.Font.SourceSans
  64. TpTemplate.Text = ""
  65. TpTemplate.TextSize = 14
  66. TpTemplate.TextXAlignment = Enum.TextXAlignment.Left
  67.  
  68. NameLabel.Name = "NameLabel"
  69. NameLabel.Parent = TpTemplate
  70. NameLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  71. NameLabel.BackgroundTransparency = 1
  72. NameLabel.BorderSizePixel = 0
  73. NameLabel.Position = UDim2.new(0.0500000007, 0, 0, 0)
  74. NameLabel.Size = UDim2.new(0, 150, 1, 0)
  75. NameLabel.Font = Enum.Font.SourceSans
  76. NameLabel.TextColor3 = Color3.new(0, 0, 0)
  77. NameLabel.TextSize = 14
  78. NameLabel.TextXAlignment = Enum.TextXAlignment.Left
  79.  
  80. EditBtn.Name = "EditBtn"
  81. EditBtn.Parent = TpTemplate
  82. EditBtn.AnchorPoint = Vector2.new(1, 0)
  83. EditBtn.BackgroundColor3 = Color3.new(0.294118, 0.74902, 0.356863)
  84. EditBtn.BorderSizePixel = 0
  85. EditBtn.Position = UDim2.new(0.970000029, 0, 0, 0)
  86. EditBtn.Size = UDim2.new(0, 25, 1, 0)
  87. EditBtn.Image = "rbxassetid://247421757"
  88.  
  89. TopLabel.Name = "TopLabel"
  90. TopLabel.Parent = MainFrame
  91. TopLabel.BackgroundColor3 = Color3.new(0.341176, 0.866667, 0.411765)
  92. TopLabel.BorderSizePixel = 0
  93. TopLabel.Size = UDim2.new(1, 0, 0.100000001, 0)
  94. TopLabel.Font = Enum.Font.SourceSans
  95. TopLabel.Text = " Waypoint Gui"
  96. TopLabel.TextColor3 = Color3.new(0, 0, 0)
  97. TopLabel.TextSize = 14
  98. TopLabel.TextXAlignment = Enum.TextXAlignment.Left
  99.  
  100. CloseBtn.Name = "CloseBtn"
  101. CloseBtn.Parent = TopLabel
  102. CloseBtn.AnchorPoint = Vector2.new(1, 0)
  103. CloseBtn.BackgroundColor3 = Color3.new(1, 0.411765, 0.411765)
  104. CloseBtn.BorderSizePixel = 0
  105. CloseBtn.Position = UDim2.new(1, 0, 0, 0)
  106. CloseBtn.Size = UDim2.new(0, 20, 0, 20)
  107. CloseBtn.Font = Enum.Font.SourceSans
  108. CloseBtn.Text = ""
  109. CloseBtn.TextSize = 14
  110.  
  111. HideBtn.Name = "HideBtn"
  112. HideBtn.Parent = TopLabel
  113. HideBtn.AnchorPoint = Vector2.new(1, 0)
  114. HideBtn.BackgroundColor3 = Color3.new(0.294118, 0.74902, 0.356863)
  115. HideBtn.BorderSizePixel = 0
  116. HideBtn.Position = UDim2.new(0.897499979, 0, 0, 0)
  117. HideBtn.Size = UDim2.new(0, 20, 0, 20)
  118. HideBtn.Font = Enum.Font.SourceSans
  119. HideBtn.Text = ""
  120. HideBtn.TextSize = 14
  121.  
  122. AddBtn.Name = "AddBtn"
  123. AddBtn.Parent = TopLabel
  124. AddBtn.AnchorPoint = Vector2.new(1, 0)
  125. AddBtn.BackgroundColor3 = Color3.new(0.258824, 0.666667, 0.313726)
  126. AddBtn.BorderSizePixel = 0
  127. AddBtn.Position = UDim2.new(0.800000012, 0, 0, 0)
  128. AddBtn.Size = UDim2.new(0, 20, 0, 20)
  129. AddBtn.Image = "rbxassetid://257579835"
  130. AddBtn.ImageColor3 = Color3.new(0, 0, 0)
  131.  
  132. EditFrame.Name = "EditFrame"
  133. EditFrame.Parent = KoiraWaypoints
  134. EditFrame.Active = true
  135. EditFrame.Draggable = true
  136. EditFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  137. EditFrame.BackgroundColor3 = Color3.new(0.396078, 1, 0.486275)
  138. EditFrame.BorderColor3 = Color3.new(0.188235, 0.47451, 0.223529)
  139. EditFrame.Position = UDim2.new(0.300000012, 0, 0.5, 0)
  140. EditFrame.Size = UDim2.new(0, 200, 0, 100)
  141. EditFrame.Visible = false
  142.  
  143. SettingsLabel.Name = "SettingsLabel"
  144. SettingsLabel.Parent = EditFrame
  145. SettingsLabel.BackgroundColor3 = Color3.new(0.341176, 0.866667, 0.411765)
  146. SettingsLabel.BorderSizePixel = 0
  147. SettingsLabel.Size = UDim2.new(1, 0, 0, 25)
  148. SettingsLabel.Font = Enum.Font.SourceSans
  149. SettingsLabel.Text = " Settings"
  150. SettingsLabel.TextColor3 = Color3.new(0, 0, 0)
  151. SettingsLabel.TextSize = 14
  152. SettingsLabel.TextXAlignment = Enum.TextXAlignment.Left
  153.  
  154. CloseBtn_2.Name = "CloseBtn"
  155. CloseBtn_2.Parent = SettingsLabel
  156. CloseBtn_2.AnchorPoint = Vector2.new(1, 0)
  157. CloseBtn_2.BackgroundColor3 = Color3.new(1, 0.411765, 0.411765)
  158. CloseBtn_2.BorderSizePixel = 0
  159. CloseBtn_2.Position = UDim2.new(1, 0, 0, 0)
  160. CloseBtn_2.Size = UDim2.new(0, 20, 0, 20)
  161. CloseBtn_2.Font = Enum.Font.SourceSans
  162. CloseBtn_2.Text = ""
  163. CloseBtn_2.TextSize = 14
  164.  
  165. HideBtn_2.Name = "HideBtn"
  166. HideBtn_2.Parent = SettingsLabel
  167. HideBtn_2.AnchorPoint = Vector2.new(1, 0)
  168. HideBtn_2.BackgroundColor3 = Color3.new(0.294118, 0.74902, 0.356863)
  169. HideBtn_2.BorderSizePixel = 0
  170. HideBtn_2.Position = UDim2.new(0.897499979, 0, 0, 0)
  171. HideBtn_2.Size = UDim2.new(0, 20, 0, 20)
  172. HideBtn_2.Font = Enum.Font.SourceSans
  173. HideBtn_2.Text = ""
  174. HideBtn_2.TextSize = 14
  175.  
  176. NameBox.Name = "NameBox"
  177. NameBox.Parent = EditFrame
  178. NameBox.BackgroundColor3 = Color3.new(0.341176, 0.866667, 0.411765)
  179. NameBox.BorderSizePixel = 0
  180. NameBox.Position = UDim2.new(0.0500000007, 0, 0.330000013, 0)
  181. NameBox.Size = UDim2.new(0, 150, 0, 25)
  182. NameBox.Font = Enum.Font.SourceSans
  183. NameBox.Text = "Label"
  184. NameBox.TextColor3 = Color3.new(0, 0, 0)
  185. NameBox.TextSize = 14
  186. NameBox.TextXAlignment = Enum.TextXAlignment.Left
  187. local TextLabel = Instance.new("TextLabel")
  188. TextLabel.Parent = KoiraWaypoints
  189. TextLabel.AnchorPoint = Vector2.new(0, 1)
  190. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  191. TextLabel.BackgroundTransparency = 1
  192. TextLabel.Position = UDim2.new(0, 0, 1, 0)
  193. TextLabel.Size = UDim2.new(0, 200, 0, 25)
  194. TextLabel.Font = Enum.Font.SourceSans
  195. TextLabel.Text = "waypoint gui by koirapallo32#5518 :)"
  196. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  197. TextLabel.TextSize = 14
  198. TextLabel.TextStrokeTransparency = 0
  199. EditBtn_2.Name = "EditBtn"
  200. EditBtn_2.Parent = NameBox
  201. EditBtn_2.AnchorPoint = Vector2.new(1, 0)
  202. EditBtn_2.BackgroundColor3 = Color3.new(0.294118, 0.74902, 0.356863)
  203. EditBtn_2.BorderSizePixel = 0
  204. EditBtn_2.Position = UDim2.new(1.20000005, 0, 0, 0)
  205. EditBtn_2.Size = UDim2.new(0, 25, 1, 0)
  206. EditBtn_2.Image = "rbxassetid://247421757"
  207.  
  208. DeleteBtn.Name = "DeleteBtn"
  209. DeleteBtn.Parent = EditFrame
  210. DeleteBtn.BackgroundColor3 = Color3.new(1, 0.521569, 0.521569)
  211. DeleteBtn.BorderSizePixel = 0
  212. DeleteBtn.Position = UDim2.new(0.100000001, 0, 0.660000026, 0)
  213. DeleteBtn.Size = UDim2.new(0.800000012, 0, 0, 25)
  214. DeleteBtn.Font = Enum.Font.SourceSans
  215. DeleteBtn.Text = " Delete"
  216. DeleteBtn.TextColor3 = Color3.new(0, 0, 0)
  217. DeleteBtn.TextSize = 14
  218. DeleteBtn.TextXAlignment = Enum.TextXAlignment.Left
  219.  
  220. ImageLabel.Parent = DeleteBtn
  221. ImageLabel.AnchorPoint = Vector2.new(1, 0)
  222. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  223. ImageLabel.BackgroundTransparency = 1
  224. ImageLabel.Position = UDim2.new(0.995000005, 0, 0.0500000007, 0)
  225. ImageLabel.Size = UDim2.new(0, 22, 0, 22)
  226. ImageLabel.Image = "rbxassetid://145360650"
  227. ImageLabel.ImageColor3 = Color3.new(0, 0, 0)
  228.  
  229. function sort()
  230. local rs = game:service'ReplicatedStorage'
  231. local fol = Instance.new("Folder",rs)
  232. fol.Name = "Hello"
  233. for i,v in pairs(ScrollingFrame:GetChildren()) do
  234. if v.Name ~= "TpTemplate" then
  235. v.Parent = fol
  236. end
  237. end
  238. for i,v in pairs(fol:GetChildren()) do
  239. v.Parent = ScrollingFrame
  240. v.Position = UDim2.new(0,0,0,-50+(25*#ScrollingFrame:GetChildren()))
  241. end
  242. fol:Destroy()
  243. end
  244.  
  245. ShowBtn.MouseButton1Click:connect(function()
  246. MainFrame:TweenPosition(UDim2.new(0.1,0,0.5,0),"Out", "Quad", 0.5)
  247. ShowBtn:TweenPosition(UDim2.new(-0.5,0,0.9,0),"Out", "Quad", 0.5)
  248. end)
  249.  
  250. CloseBtn.MouseButton1Click:connect(function()
  251. KoiraWaypoints:Destroy()
  252. end)
  253.  
  254. HideBtn.MouseButton1Click:connect(function()
  255. MainFrame:TweenPosition(UDim2.new(-0.5,0,0.5,0),"Out", "Quad", 0.5)
  256. ShowBtn:TweenPosition(UDim2.new(0,0,0.9,0),"Out", "Quad", 0.5)
  257. end)
  258.  
  259. AddBtn.MouseButton1Click:connect(function()
  260. local lol = TpTemplate:Clone()
  261. lol.Parent = ScrollingFrame
  262. lol.Visible = true
  263. lol.Position = UDim2.new(0,0,0,-50+(25*#ScrollingFrame:GetChildren()))
  264. local val = Instance.new("Vector3Value",lol)
  265. val.Value = game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame.p
  266. lol.MouseButton1Click:connect(function()
  267. game:service'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(val.Value)
  268. end)
  269. val.Name = "Pos"
  270. lol.Name = "Waypoint"
  271. lol.NameLabel.Text = "Waypoint"
  272. lol.EditBtn.MouseButton1Click:connect(function()
  273. local dsa = EditFrame:Clone()
  274. dsa.Visible =true
  275. dsa.NameBox.Text = lol.NameLabel.Text
  276. dsa.SettingsLabel.HideBtn:Destroy()
  277. dsa.Parent = KoiraWaypoints
  278. dsa.DeleteBtn.MouseButton1Click:connect(function()
  279. lol:Destroy()
  280. dsa:Destroy()
  281. sort()
  282. end)
  283. dsa.NameBox.EditBtn.MouseButton1Click:connect(function()
  284. if dsa.NameBox.Text ~= nil then
  285. lol.NameLabel.Text = dsa.NameBox.Text
  286. end
  287. end)
  288. dsa.SettingsLabel.CloseBtn.MouseButton1Click:connect(function()
  289. dsa:Destroy()
  290. end)
  291. end)
  292. end)
  293. for i=30,0,-1 do
  294. wait(1)
  295. TextLabel.Text = "waypoint gui by koirapallo32#5518 ("..i..")"
  296. end
  297. TextLabel:Destroy()
Add Comment
Please, Sign In to add comment