Advertisement
Adel987654321

Jetpack Simulator

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