Advertisement
IGhostxGamerI

Build A Boat For Treasure Instant Win Gui

May 8th, 2018
14,449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local TextButton = Instance.new("TextButton")
  5.  
  6. -- Properties
  7.  
  8. ScreenGui.Parent = game.CoreGui
  9.  
  10. TextButton.Parent = ScreenGui
  11. TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  12. TextButton.BorderSizePixel = 0
  13. TextButton.Position = UDim2.new(0, 0, 0.655367255, 0)
  14. TextButton.Size = UDim2.new(0, 194, 0, 43)
  15. TextButton.Font = Enum.Font.SourceSans
  16. TextButton.Text = "Win"
  17. TextButton.TextColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  18. TextButton.TextScaled = true
  19. TextButton.TextSize = 14
  20. TextButton.TextWrapped = true
  21.  
  22. -- Scripts
  23.  
  24. TextButton.MouseButton1Up:Connect(function()
  25. plr = game.Players.LocalPlayer
  26. hum = plr.Character.HumanoidRootPart
  27. zvalue = 1360
  28. booly = true
  29. for i = 1, 20 do
  30. hum.CFrame = CFrame.new(-51,36,zvalue)
  31. if booly == true then
  32. zvalue = zvalue + 246
  33. booly = false
  34. else
  35. zvalue = zvalue + 504
  36. booly = true
  37. end
  38. wait(0.09)
  39. end
  40. hum.CFrame = CFrame.new(-55,-351,9523)
  41. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement