TheNadie

Untitled

Jan 4th, 2019
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.16 KB | None | 0 0
  1. _G.MaxSize = "20/20" --Change this to your max fuel inventory/size
  2.  
  3. local Thing = Instance.new("ScreenGui")
  4. local Drag = Instance.new("Frame")
  5. local Main = Instance.new("Frame")
  6. local Button1 = Instance.new("TextButton")
  7. local Button2 = Instance.new("TextButton")
  8. local Button3 = Instance.new("TextButton")
  9. local Button4 = Instance.new("TextButton")
  10. local Button5 = Instance.new("TextButton")
  11. local Button6 = Instance.new("TextButton")
  12. local Button7 = Instance.new("TextButton")
  13. local Button8 = Instance.new("TextButton")
  14. local Button9 = Instance.new("TextButton")
  15. local TextLabel = Instance.new("TextLabel")
  16. local TextButton = Instance.new("TextButton")
  17. Thing.Name = "Thing"
  18. Thing.Parent = game.CoreGui
  19. farm1 = false
  20. farm2 = false
  21. farm3 = false
  22. farm4 = false
  23. farm5 = false
  24. farm6 = false
  25. farm7 = false
  26. farm8 = false
  27. farm9 = false
  28. game.Players.LocalPlayer.PlayerGui.MainGUI.FullFuelFrame.Visible = false
  29.  
  30. Drag.Name = "Drag"
  31. Drag.Parent = Thing
  32. Drag.Active = true
  33. Drag.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.352941)
  34. Drag.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  35. Drag.BorderSizePixel = 3
  36. Drag.Position = UDim2.new(0.78186202, 0, 0.313490659, 0)
  37. Drag.Selectable = true
  38. Drag.Size = UDim2.new(0, 227, 0, 22)
  39. Drag.Draggable = true
  40.  
  41. Main.Name = "Main"
  42. Main.Parent = Drag
  43. Main.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.176471)
  44. Main.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  45. Main.BorderSizePixel = 3
  46. Main.Position = UDim2.new(-0.001, 0, 0.98, 0)
  47. Main.Size = UDim2.new(0, 227, 0, 522)
  48.  
  49. Button1.Name = "Button1"
  50. Button1.Parent = Main
  51. Button1.BackgroundColor3 = Color3.new(0.5, 0, 0)
  52. Button1.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  53. Button1.BorderSizePixel = 2
  54. Button1.Position = UDim2.new(0.0299999993, 0, 0.011, 0)
  55. Button1.Size = UDim2.new(0, 214, 0, 50)
  56. Button1.Font = Enum.Font.Code
  57. Button1.Text = "Coal"
  58. Button1.TextColor3 = Color3.new(0, 0, 0)
  59. Button1.TextSize = 25
  60. Button1.TextWrapped = true
  61. Button1.MouseButton1Click:connect(function()
  62. if farm1 == true then farm1 = false print("Disabled")
  63. Button1.BackgroundColor3 = Color3.new(.5, 0, 0)
  64. elseif
  65. farm1 == false then farm1 = true print("Enabled")
  66. Button1.BackgroundColor3 = Color3.new(0, .5, 0)
  67. end
  68. Farm1()
  69. end)
  70.  
  71. Button2.Name = "Button2"
  72. Button2.Parent = Main
  73. Button2.BackgroundColor3 = Color3.new(0.5, 0, 0)
  74. Button2.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  75. Button2.BorderSizePixel = 2
  76. Button2.Position = UDim2.new(0.0299999993, 0, 0.12, 0)
  77. Button2.Size = UDim2.new(0, 214, 0, 50)
  78. Button2.Font = Enum.Font.Code
  79. Button2.Text = "Battery"
  80. Button2.TextColor3 = Color3.new(0, 0, 0)
  81. Button2.TextSize = 25
  82. Button2.TextWrapped = true
  83. Button2.MouseButton1Click:connect(function()
  84. if farm2 == true then farm2 = false print("Disabled")
  85. Button2.BackgroundColor3 = Color3.new(.5, 0, 0)
  86. elseif
  87. farm2 == false then farm2 = true print("Enabled")
  88. Button2.BackgroundColor3 = Color3.new(0, .5, 0)
  89. end
  90. Farm2()
  91. end)
  92.  
  93. Button3.Name = "Button3"
  94. Button3.Parent = Main
  95. Button3.BackgroundColor3 = Color3.new(0.5, 0, 0)
  96. Button3.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  97. Button3.BorderSizePixel = 2
  98. Button3.Position = UDim2.new(0.0299999993, 0, 0.23, 0)
  99. Button3.Size = UDim2.new(0, 214, 0, 50)
  100. Button3.Font = Enum.Font.Code
  101. Button3.Text = "Solar"
  102. Button3.TextColor3 = Color3.new(0, 0, 0)
  103. Button3.TextSize = 25
  104. Button3.TextWrapped = true
  105. Button3.MouseButton1Click:connect(function()
  106. if farm3 == true then farm3 = false print("Disabled")
  107. Button3.BackgroundColor3 = Color3.new(.5, 0, 0)
  108. elseif
  109. farm3 == false then farm3 = true print("Enabled")
  110. Button3.BackgroundColor3 = Color3.new(0, .5, 0)
  111. end
  112. Farm3()
  113. end)
  114.  
  115. Button4.Name = "Button4"
  116. Button4.Parent = Main
  117. Button4.BackgroundColor3 = Color3.new(0.5, 0, 0)
  118. Button4.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  119. Button4.BorderSizePixel = 2
  120. Button4.Position = UDim2.new(0.0299999993, 0, 0.34, 0)
  121. Button4.Size = UDim2.new(0, 214, 0, 50)
  122. Button4.Font = Enum.Font.Code
  123. Button4.Text = "Wind"
  124. Button4.TextColor3 = Color3.new(0, 0, 0)
  125. Button4.TextSize = 25
  126. Button4.TextWrapped = true
  127. Button4.MouseButton1Click:connect(function()
  128. if farm4 == true then farm4 = false print("Disabled")
  129. Button4.BackgroundColor3 = Color3.new(.5, 0, 0)
  130. elseif
  131. farm4 == false then farm4 = true print("Enabled")
  132. Button4.BackgroundColor3 = Color3.new(0, .5, 0)
  133. end
  134. Farm4()
  135. end)
  136.  
  137. Button5.Name = "Button5"
  138. Button5.Parent = Main
  139. Button5.BackgroundColor3 = Color3.new(0.5, 0, 0)
  140. Button5.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  141. Button5.BorderSizePixel = 2
  142. Button5.Position = UDim2.new(0.0299999993, 0, 0.45, 0)
  143. Button5.Size = UDim2.new(0, 214, 0, 50)
  144. Button5.Font = Enum.Font.Code
  145. Button5.Text = "Nuclear"
  146. Button5.TextColor3 = Color3.new(0, 0, 0)
  147. Button5.TextSize = 25
  148. Button5.TextWrapped = true
  149. Button5.MouseButton1Click:connect(function()
  150. if farm5 == true then farm5 = false print("Disabled")
  151. Button5.BackgroundColor3 = Color3.new(.5, 0, 0)
  152. elseif
  153. farm5 == false then farm5 = true print("Enabled")
  154. Button5.BackgroundColor3 = Color3.new(0, .5, 0)
  155. end
  156. Farm5()
  157. end)
  158.  
  159. Button6.Name = "Button6"
  160. Button6.Parent = Main
  161. Button6.BackgroundColor3 = Color3.new(0.5, 0, 0)
  162. Button6.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  163. Button6.BorderSizePixel = 2
  164. Button6.Position = UDim2.new(0.0299999993, 0, 0.56, 0)
  165. Button6.Size = UDim2.new(0, 214, 0, 50)
  166. Button6.Font = Enum.Font.Code
  167. Button6.Text = "Plasma"
  168. Button6.TextColor3 = Color3.new(0, 0, 0)
  169. Button6.TextSize = 25
  170. Button6.TextWrapped = true
  171. Button6.MouseButton1Click:connect(function()
  172. if farm6 == true then farm6 = false print("Disabled")
  173. Button6.BackgroundColor3 = Color3.new(.5, 0, 0)
  174. elseif
  175. farm6 == false then farm6 = true print("Enabled")
  176. Button6.BackgroundColor3 = Color3.new(0, .5, 0)
  177. end
  178. Farm6()
  179. end)
  180.  
  181. Button7.Name = "Button7"
  182. Button7.Parent = Main
  183. Button7.BackgroundColor3 = Color3.new(0.5, 0, 0)
  184. Button7.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  185. Button7.BorderSizePixel = 2
  186. Button7.Position = UDim2.new(0.0299999993, 0, 0.67, 0)
  187. Button7.Size = UDim2.new(0, 214, 0, 50)
  188. Button7.Font = Enum.Font.Code
  189. Button7.Text = "Aetherium"
  190. Button7.TextColor3 = Color3.new(0, 0, 0)
  191. Button7.TextSize = 25
  192. Button7.TextWrapped = true
  193. Button7.MouseButton1Click:connect(function()
  194. if farm7 == true then farm7 = false print("Disabled")
  195. Button7.BackgroundColor3 = Color3.new(.5, 0, 0)
  196. elseif
  197. farm7 == false then farm7 = true print("Enabled")
  198. Button7.BackgroundColor3 = Color3.new(0, .5, 0)
  199. end
  200. Farm7()
  201. end)
  202.  
  203. Button8.Name = "Button8"
  204. Button8.Parent = Main
  205. Button8.BackgroundColor3 = Color3.new(0.5, 0, 0)
  206. Button8.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  207. Button8.BorderSizePixel = 2
  208. Button8.Position = UDim2.new(0.0299999993, 0, 0.78, 0)
  209. Button8.Size = UDim2.new(0, 214, 0, 50)
  210. Button8.Font = Enum.Font.Code
  211. Button8.Text = "Corrodium"
  212. Button8.TextColor3 = Color3.new(0, 0, 0)
  213. Button8.TextSize = 25
  214. Button8.TextWrapped = true
  215. Button8.MouseButton1Click:connect(function()
  216. if farm8 == true then farm8 = false print("Disabled")
  217. Button8.BackgroundColor3 = Color3.new(.5, 0, 0)
  218. elseif
  219. farm8 == false then farm8 = true print("Enabled")
  220. Button8.BackgroundColor3 = Color3.new(0, .5, 0)
  221. end
  222. Farm8()
  223. end)
  224.  
  225. Button9.Name = "Button8"
  226. Button9.Parent = Main
  227. Button9.BackgroundColor3 = Color3.new(0.5, 0, 0)
  228. Button9.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
  229. Button9.BorderSizePixel = 2
  230. Button9.Position = UDim2.new(0.0299999993, 0, 0.89, 0)
  231. Button9.Size = UDim2.new(0, 214, 0, 50)
  232. Button9.Font = Enum.Font.Code
  233. Button9.Text = "Element 99"
  234. Button9.TextColor3 = Color3.new(0, 0, 0)
  235. Button9.TextSize = 25
  236. Button9.TextWrapped = true
  237. Button9.MouseButton1Click:connect(function()
  238. if farm9 == true then farm9 = false print("Disabled")
  239. Button9.BackgroundColor3 = Color3.new(.5, 0, 0)
  240. elseif
  241. farm9 == false then farm9 = true print("Enabled")
  242. Button9.BackgroundColor3 = Color3.new(0, .5, 0)
  243. end
  244. Farm9()
  245. end)
  246.  
  247. TextLabel.Parent = Drag
  248. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  249. TextLabel.BackgroundTransparency = 1
  250. TextLabel.Position = UDim2.new(-0.00352370739, 0, -0.048604846, 0)
  251. TextLabel.Size = UDim2.new(0, 227, 0, 22)
  252. TextLabel.Font = Enum.Font.Code
  253. TextLabel.Text = "JetPackSim"
  254. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  255. TextLabel.TextSize = 22
  256.  
  257. TextButton.Parent = Thing
  258. TextButton.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.352941)
  259. TextButton.Position = UDim2.new(0.9, 0, 0.95, 0)
  260. TextButton.Size = UDim2.new(0, 90, 0, 28)
  261. TextButton.Font = Enum.Font.Code
  262. TextButton.Text = "Close"
  263. TextButton.TextColor3 = Color3.new(0, 0, 0)
  264. TextButton.TextSize = 25
  265.  
  266.  
  267. --This is for the open close button
  268. function Scriptz()
  269. local script = Instance.new('LocalScript')
  270. script.Parent = TextButton
  271. button = script.Parent
  272. Drag = script.Parent.Parent.Drag
  273.  
  274. --Updates the visibility of Drag which is the parent of main when you click the open/close button
  275. function onClick()
  276. if Drag.Visible == true then
  277. Drag.Visible = false
  278. elseif Drag.Visible == false then
  279. Drag.Visible = true
  280. end
  281. end
  282.  
  283. button.MouseButton1Click:connect(onClick)
  284.  
  285. --Updates the text of the button to close or open based on visibility
  286. while wait(0) do
  287. if Drag.Visible == true then
  288. button.Text = "Close"
  289. elseif Drag.Visible == false then
  290. button.Text = "Open"
  291. end
  292. end
  293.  
  294. end
  295. coroutine.resume(coroutine.create(Scriptz))
  296.  
  297. function sell()
  298. if game.Players.LocalPlayer.PlayerGui.MainGUI.FuelDisplay.TextLabel.Text == _G.MaxSize then
  299. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(141.2047, 3.32, -3.3)
  300. end
  301. end
  302.  
  303. function Farm1()
  304. while farm1 == true do
  305. wait(.2)
  306. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area1.Coal.Coal.HitPart.CFrame
  307. sell()
  308. end
  309. end
  310.  
  311. function Farm2()
  312. while farm2 == true do
  313. wait(.2)
  314. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area2.Battery.Battery.HitPart.CFrame
  315. sell()
  316. end
  317. end
  318.  
  319. function Farm3()
  320. while farm3 == true do
  321. wait(.2)
  322. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area2.Solar.Solar.HitPart.CFrame
  323. sell()
  324. end
  325. end
  326.  
  327. function Farm4()
  328. while farm4 == true do
  329. wait(.2)
  330. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area4.Wind.Wind.HitPart.CFrame
  331. sell()
  332. end
  333. end
  334.  
  335. function Farm5()
  336. while farm5 == true do
  337. wait(.2)
  338. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area7.Nuclear.Nuclear.HitPart.CFrame
  339. sell()
  340. end
  341. end
  342.  
  343. function Farm6()
  344. while farm6 == true do
  345. wait(.2)
  346. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area7.Plasma.Plasma.HitPart.CFrame
  347. sell()
  348. end
  349. end
  350.  
  351. function Farm7()
  352. while farm7 == true do
  353. wait(.2)
  354. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area11.Aetherium.Aetherium.HitPart.CFrame
  355. sell()
  356. end
  357. end
  358.  
  359. function Farm8()
  360. while farm8 == true do
  361. wait(.2)
  362. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area13.Corrodium.Corrodium.HitPart.CFrame
  363. sell()
  364. end
  365. end
  366.  
  367. function Farm9()
  368. while farm9 == true do
  369. wait(.2)
  370. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area13["Element 99"]["Element 99"].HitPart.CFrame
  371. sell()
  372. end
  373. end
Add Comment
Please, Sign In to add comment