Advertisement
illustriousReel

Build a boat for treasure teleport gui

Feb 16th, 2020
1,208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.82 KB | None | 0 0
  1. --Made by 44reelxz
  2. -- Gui to Lua
  3. -- Version: 3.2
  4.  
  5. -- Instances:
  6.  
  7. local hahha = Instance.new("ScreenGui")
  8. local mainframe = Instance.new("Frame")
  9. local TextLabel = Instance.new("TextLabel")
  10. local yellowbutton = Instance.new("TextButton")
  11. local redbutton = Instance.new("TextButton")
  12. local bluebutton = Instance.new("TextButton")
  13. local greenbutton = Instance.new("TextButton")
  14. local purplebutton = Instance.new("TextButton")
  15. local blackbutton = Instance.new("TextButton")
  16. local whitebutton = Instance.new("TextButton")
  17. local TextLabel_2 = Instance.new("TextLabel")
  18. local closebutton = Instance.new("TextButton")
  19. local openbutton = Instance.new("TextButton")
  20.  
  21. --Properties:
  22.  
  23. hahha.Name = "hahha"
  24. hahha.Parent = game.CoreGui
  25. hahha.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  26.  
  27. mainframe.Name = "mainframe"
  28. mainframe.Parent = hahha
  29. mainframe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. mainframe.Position = UDim2.new(0.496217847, 0, 0.286240786, 0)
  31. mainframe.Size = UDim2.new(0, 425, 0, 268)
  32.  
  33. TextLabel.Parent = mainframe
  34. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  35. TextLabel.BackgroundTransparency = 1.000
  36. TextLabel.Position = UDim2.new(0, 0, -0.0037313432, 0)
  37. TextLabel.Size = UDim2.new(0, 425, 0, 37)
  38. TextLabel.Font = Enum.Font.GothamBlack
  39. TextLabel.Text = "Teleport Gui"
  40. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  41. TextLabel.TextScaled = true
  42. TextLabel.TextWrapped = true
  43.  
  44. yellowbutton.Name = "yellowbutton"
  45. yellowbutton.Parent = mainframe
  46. yellowbutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  47. yellowbutton.Position = UDim2.new(0.0282352939, 0, 0.222905725, 0)
  48. yellowbutton.Size = UDim2.new(0, 168, 0, 44)
  49. yellowbutton.Font = Enum.Font.GothamBold
  50. yellowbutton.Text = "Yellow"
  51. yellowbutton.TextColor3 = Color3.fromRGB(255, 204, 19)
  52. yellowbutton.TextSize = 26.000
  53. yellowbutton.MouseButton1Down:connect(function()
  54. local me = game.Players.LocalPlayer.Character
  55.  
  56. me.HumanoidRootPart.CFrame = CFrame.new(-501,-9,641)----put cordinates in here
  57. end)
  58.  
  59. redbutton.Name = "redbutton"
  60. redbutton.Parent = mainframe
  61. redbutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  62. redbutton.Position = UDim2.new(0.0282352939, 0, 0.416935563, 0)
  63. redbutton.Size = UDim2.new(0, 168, 0, 44)
  64. redbutton.Font = Enum.Font.GothamBold
  65. redbutton.Text = "Red"
  66. redbutton.TextColor3 = Color3.fromRGB(255, 2, 6)
  67. redbutton.TextSize = 26.000
  68. redbutton.MouseButton1Down:connect(function()
  69. local me = game.Players.LocalPlayer.Character
  70.  
  71. me.HumanoidRootPart.CFrame = CFrame.new(388,-9,-64)----put cordinates in here
  72. end)
  73.  
  74. bluebutton.Name = "bluebutton"
  75. bluebutton.Parent = mainframe
  76. bluebutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  77. bluebutton.Position = UDim2.new(0.0282352939, 0, 0.607234061, 0)
  78. bluebutton.Size = UDim2.new(0, 168, 0, 44)
  79. bluebutton.Font = Enum.Font.GothamBold
  80. bluebutton.Text = "Blue"
  81. bluebutton.TextColor3 = Color3.fromRGB(19, 133, 255)
  82. bluebutton.TextSize = 26.000
  83. bluebutton.MouseButton1Down:connect(function()
  84. local me = game.Players.LocalPlayer.Character
  85.  
  86. me.HumanoidRootPart.CFrame = CFrame.new(388,-9,300)----put cordinates in here
  87. end)
  88.  
  89. greenbutton.Name = "greenbutton"
  90. greenbutton.Parent = mainframe
  91. greenbutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  92. greenbutton.Position = UDim2.new(0.574117661, 0, 0.222905725, 0)
  93. greenbutton.Size = UDim2.new(0, 168, 0, 44)
  94. greenbutton.Font = Enum.Font.GothamBold
  95. greenbutton.Text = "Green"
  96. greenbutton.TextColor3 = Color3.fromRGB(38, 255, 0)
  97. greenbutton.TextSize = 26.000
  98. greenbutton.MouseButton1Down:connect(function()
  99. local me = game.Players.LocalPlayer.Character
  100.  
  101. me.HumanoidRootPart.CFrame = CFrame.new(-502,-9,293)----put cordinates in here
  102. end)
  103.  
  104. purplebutton.Name = "purplebutton"
  105. purplebutton.Parent = mainframe
  106. purplebutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  107. purplebutton.Position = UDim2.new(0.574117661, 0, 0.416935563, 0)
  108. purplebutton.Size = UDim2.new(0, 168, 0, 44)
  109. purplebutton.Font = Enum.Font.GothamBold
  110. purplebutton.Text = "Purple"
  111. purplebutton.TextColor3 = Color3.fromRGB(170, 0, 255)
  112. purplebutton.TextSize = 26.000
  113. purplebutton.MouseButton1Down:connect(function()
  114. local me = game.Players.LocalPlayer.Character
  115.  
  116. me.HumanoidRootPart.CFrame = CFrame.new(397,-9,645)----put cordinates in here
  117. end)
  118.  
  119. blackbutton.Name = "blackbutton"
  120. blackbutton.Parent = mainframe
  121. blackbutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  122. blackbutton.Position = UDim2.new(0.574117661, 0, 0.60350275, 0)
  123. blackbutton.Size = UDim2.new(0, 168, 0, 44)
  124. blackbutton.Font = Enum.Font.GothamBold
  125. blackbutton.Text = "Black"
  126. blackbutton.TextColor3 = Color3.fromRGB(72, 72, 72)
  127. blackbutton.TextSize = 26.000
  128. blackbutton.MouseButton1Down:connect(function()
  129. local me = game.Players.LocalPlayer.Character
  130.  
  131. me.HumanoidRootPart.CFrame = CFrame.new(-508,-9,-67)----put cordinates in here
  132. end)
  133.  
  134. whitebutton.Name = "whitebutton"
  135. whitebutton.Parent = mainframe
  136. whitebutton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  137. whitebutton.Position = UDim2.new(0.301176459, 0, 0.797532558, 0)
  138. whitebutton.Size = UDim2.new(0, 168, 0, 44)
  139. whitebutton.Font = Enum.Font.GothamBold
  140. whitebutton.Text = "White"
  141. whitebutton.TextColor3 = Color3.fromRGB(253, 253, 253)
  142. whitebutton.TextSize = 26.000
  143. whitebutton.MouseButton1Down:connect(function()
  144. local me = game.Players.LocalPlayer.Character
  145.  
  146. me.HumanoidRootPart.CFrame = CFrame.new(-48,-9,-520)----put cordinates in here
  147. end)
  148.  
  149. TextLabel_2.Parent = mainframe
  150. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  151. TextLabel_2.BackgroundTransparency = 1.000
  152. TextLabel_2.Position = UDim2.new(-0.115294114, 0, 0.032607235, 0)
  153. TextLabel_2.Size = UDim2.new(0, 202, 0, 17)
  154. TextLabel_2.Font = Enum.Font.ArialBold
  155. TextLabel_2.Text = "Build a Boat"
  156. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  157. TextLabel_2.TextScaled = true
  158. TextLabel_2.TextSize = 5.000
  159. TextLabel_2.TextWrapped = true
  160.  
  161. closebutton.Name = "closebutton"
  162. closebutton.Parent = mainframe
  163. closebutton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  164. closebutton.BackgroundTransparency = 1.000
  165. closebutton.Position = UDim2.new(0.771764696, 0, -0.0298507474, 0)
  166. closebutton.Size = UDim2.new(0, 167, 0, 49)
  167. closebutton.Font = Enum.Font.GothamBlack
  168. closebutton.Text = "X"
  169. closebutton.TextColor3 = Color3.fromRGB(0, 0, 0)
  170. closebutton.TextSize = 23.000
  171. closebutton.MouseButton1Down:connect(function()
  172. openbutton.Visible = true
  173. mainframe.Visible = false
  174. end)
  175.  
  176. openbutton.Name = "openbutton"
  177. openbutton.Parent = hahha
  178. openbutton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  179. openbutton.BackgroundTransparency = 1.000
  180. openbutton.Position = UDim2.new(-0.0446293503, 0, 1, 0)
  181. openbutton.Size = UDim2.new(0, 181, 0, 32)
  182. openbutton.Font = Enum.Font.SourceSans
  183. openbutton.Text = ""
  184. openbutton.TextColor3 = Color3.fromRGB(0, 0, 0)
  185. openbutton.TextSize = 14.000
  186. openbutton.MouseButton1Down:connect(function()
  187. mainframe.Visible = true
  188. openbutton.Visible = false
  189. end)
  190.  
  191. -- Scripts:
  192.  
  193. local function KLSXZ_fake_script() -- mainframe.LocalScript
  194. local script = Instance.new('LocalScript', mainframe)
  195.  
  196. script.parent.Selectable = true
  197. script.Parent.Active = true
  198. script.parent.Draggable = true
  199. end
  200. coroutine.wrap(KLSXZ_fake_script)()
  201. local function TSSTCX_fake_script() -- mainframe.LocalScript
  202. local script = Instance.new('LocalScript', mainframe)
  203.  
  204. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  205.  
  206. counter = 0
  207.  
  208. while wait(0.1)do
  209. script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  210.  
  211. counter = counter + 0.01
  212. end
  213. end
  214. coroutine.wrap(TSSTCX_fake_script)()
  215. local function KNMHUF_fake_script() -- mainframe.LocalScript
  216. local script = Instance.new('LocalScript', mainframe)
  217.  
  218.  
  219. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  220.  
  221. counter = 0
  222.  
  223. while wait(0.1)do
  224. script.Parent.BackgroundColor3 = Color3.fromHSV(zigzag(counter),1,1)
  225.  
  226. counter = counter + 0.01
  227. end
  228. end
  229. coroutine.wrap(KNMHUF_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement