Advertisement
NEKIT_YT

Build A Boat For Treasure GOLD

Oct 31st, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. local getgoldactive = false
  2.  
  3. local MainGUI = Instance.new("ScreenGui")
  4. local MainFrame = Instance.new("Frame")
  5. local Gold = Instance.new("TextButton")
  6.  
  7. MainGUI.Name = "MainGUI"
  8. MainGUI.Parent = game.CoreGui
  9. local MainCORE = game.CoreGui["MainGUI"]
  10.  
  11. MainFrame.Name = "MainFrame"
  12. MainFrame.Parent = MainGUI
  13. MainFrame.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  14. MainFrame.BackgroundTransparency = 0
  15. MainFrame.BorderColor3 = Color3.new(0.1, 0.1, 0.1)
  16. MainFrame.Active = true
  17. MainFrame.Selectable = true
  18. MainFrame.Draggable = true
  19. MainFrame.Position = UDim2.new(0, 5, 0.75, 0)
  20. MainFrame.Size = UDim2.new(0, 120, 0, 45)
  21. MainFrame.Visible = true
  22.  
  23. Gold.Name = "Gold"
  24. Gold.Parent = MainFrame
  25. Gold.BackgroundColor3 = Color3.new(0, 0, 0)
  26. Gold.BorderColor3 = Color3.new(0.1, 0.1, 0.1)
  27. Gold.Position = UDim2.new(0, 10, 0, 10)
  28. Gold.Size = UDim2.new(0, 100, 0, 25)
  29. Gold.Font = Enum.Font.Fantasy
  30. Gold.TextColor3 = Color3.new(1, 1, 1)
  31. Gold.Text = "GET GOLD"
  32. Gold.TextSize = 17
  33. Gold.TextWrapped = true
  34.  
  35. Gold.MouseButton1Click:connect(function()
  36. function round(num, numDecimalPlaces)
  37. local mult = 10^(numDecimalPlaces or 0)
  38. return math.floor(num * mult + 0.5) / mult
  39. end
  40.  
  41. if getgoldactive ~= true then
  42. getgoldactive = true
  43. Gold.BackgroundColor3 = Color3.new(0, 0.5, 0)
  44. Gold.Text = "STOP GOLD"
  45. local LocationX = round(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.x, 3)
  46. local LocationY = round(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y, 3)
  47. local LocationZ = round(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.z, 3)
  48. print("Location is: " ..LocationX.. ", " ..LocationY.. ", " ..LocationZ)
  49. while getgoldactive do
  50. local x = 50
  51. local y = 50
  52. local waittime = 0.09
  53. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,1360)
  54. wait(waittime)
  55. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,1606)
  56. wait(waittime)
  57. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,2110)
  58. wait(waittime)
  59. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,2356)
  60. wait(waittime)
  61. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,2860)
  62. wait(waittime)
  63. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,3610)
  64. wait(waittime)
  65. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,3856)
  66. wait(waittime)
  67. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,4360)
  68. wait(waittime)
  69. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,4606)
  70. wait(waittime)
  71. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,5111)
  72. wait(waittime)
  73. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,5356)
  74. wait(waittime)
  75. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,5860)
  76. wait(waittime)
  77. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,6106)
  78. wait(waittime)
  79. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,6610)
  80. wait(waittime)
  81. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,6857)
  82. wait(waittime)
  83. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,7360)
  84. wait(waittime)
  85. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,7606)
  86. wait(waittime)
  87. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,8110)
  88. wait(waittime)
  89. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(x,y,8356)
  90. wait(waittime)
  91. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-60,-250,9523)
  92. wait(waittime*7)
  93. end
  94. else
  95. getgoldactive = false
  96. Gold.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  97. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(LocationX, LocationY, LocationZ)
  98. wait(1)
  99. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(LocationX, LocationY, LocationZ)
  100. end
  101. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement