Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local jpData = game.ReplicatedStorage.DataFolder:WaitForChild(game.Players.LocalPlayer.Name):WaitForChild("JetpackData")
- local mf = jpData.MaxFuel
- _G.MaxSize = mf.Value .. "/" .. mf.Value --Change this to your max fuel inventory/size
- function update()
- _G.MaxSize = mf.Value .. "/" .. mf.Value
- end
- local Thing = Instance.new("ScreenGui")
- local Drag = Instance.new("Frame")
- local Main = Instance.new("Frame")
- local Button1 = Instance.new("TextButton")
- local Button2 = Instance.new("TextButton")
- local Button3 = Instance.new("TextButton")
- local Button4 = Instance.new("TextButton")
- local Button5 = Instance.new("TextButton")
- local Button6 = Instance.new("TextButton")
- local Button7 = Instance.new("TextButton")
- local Button8 = Instance.new("TextButton")
- local Button9 = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- Thing.Name = "Thing"
- Thing.Parent = game.CoreGui
- farm1 = false
- farm2 = false
- farm3 = false
- farm4 = false
- farm5 = false
- farm6 = false
- farm7 = false
- farm8 = false
- farm9 = false
- game.Players.LocalPlayer.PlayerGui.MainGUI.FullFuelFrame.Visible = false
- Drag.Name = "Drag"
- Drag.Parent = Thing
- Drag.Active = true
- Drag.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.352941)
- Drag.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Drag.BorderSizePixel = 3
- Drag.Position = UDim2.new(0.78186202, 0, 0.313490659, 0)
- Drag.Selectable = true
- Drag.Size = UDim2.new(0, 227, 0, 22)
- Drag.Draggable = true
- Main.Name = "Main"
- Main.Parent = Drag
- Main.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.176471)
- Main.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Main.BorderSizePixel = 3
- Main.Position = UDim2.new(-0.001, 0, 0.98, 0)
- Main.Size = UDim2.new(0, 227, 0, 522)
- Button1.Name = "Button1"
- Button1.Parent = Main
- Button1.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button1.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button1.BorderSizePixel = 2
- Button1.Position = UDim2.new(0.0299999993, 0, 0.011, 0)
- Button1.Size = UDim2.new(0, 214, 0, 50)
- Button1.Font = Enum.Font.Code
- Button1.Text = "Coal"
- Button1.TextColor3 = Color3.new(0, 0, 0)
- Button1.TextSize = 25
- Button1.TextWrapped = true
- Button1.MouseButton1Click:connect(function()
- if farm1 == true then farm1 = false print("Disabled")
- Button1.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm1 == false then farm1 = true print("Enabled")
- Button1.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm1()
- end)
- Button2.Name = "Button2"
- Button2.Parent = Main
- Button2.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button2.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button2.BorderSizePixel = 2
- Button2.Position = UDim2.new(0.0299999993, 0, 0.12, 0)
- Button2.Size = UDim2.new(0, 214, 0, 50)
- Button2.Font = Enum.Font.Code
- Button2.Text = "Battery"
- Button2.TextColor3 = Color3.new(0, 0, 0)
- Button2.TextSize = 25
- Button2.TextWrapped = true
- Button2.MouseButton1Click:connect(function()
- if farm2 == true then farm2 = false print("Disabled")
- Button2.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm2 == false then farm2 = true print("Enabled")
- Button2.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm2()
- end)
- Button3.Name = "Button3"
- Button3.Parent = Main
- Button3.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button3.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button3.BorderSizePixel = 2
- Button3.Position = UDim2.new(0.0299999993, 0, 0.23, 0)
- Button3.Size = UDim2.new(0, 214, 0, 50)
- Button3.Font = Enum.Font.Code
- Button3.Text = "Solar"
- Button3.TextColor3 = Color3.new(0, 0, 0)
- Button3.TextSize = 25
- Button3.TextWrapped = true
- Button3.MouseButton1Click:connect(function()
- if farm3 == true then farm3 = false print("Disabled")
- Button3.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm3 == false then farm3 = true print("Enabled")
- Button3.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm3()
- end)
- Button4.Name = "Button4"
- Button4.Parent = Main
- Button4.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button4.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button4.BorderSizePixel = 2
- Button4.Position = UDim2.new(0.0299999993, 0, 0.34, 0)
- Button4.Size = UDim2.new(0, 214, 0, 50)
- Button4.Font = Enum.Font.Code
- Button4.Text = "Wind"
- Button4.TextColor3 = Color3.new(0, 0, 0)
- Button4.TextSize = 25
- Button4.TextWrapped = true
- Button4.MouseButton1Click:connect(function()
- if farm4 == true then farm4 = false print("Disabled")
- Button4.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm4 == false then farm4 = true print("Enabled")
- Button4.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm4()
- end)
- Button5.Name = "Button5"
- Button5.Parent = Main
- Button5.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button5.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button5.BorderSizePixel = 2
- Button5.Position = UDim2.new(0.0299999993, 0, 0.45, 0)
- Button5.Size = UDim2.new(0, 214, 0, 50)
- Button5.Font = Enum.Font.Code
- Button5.Text = "Nuclear"
- Button5.TextColor3 = Color3.new(0, 0, 0)
- Button5.TextSize = 25
- Button5.TextWrapped = true
- Button5.MouseButton1Click:connect(function()
- if farm5 == true then farm5 = false print("Disabled")
- Button5.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm5 == false then farm5 = true print("Enabled")
- Button5.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm5()
- end)
- Button6.Name = "Button6"
- Button6.Parent = Main
- Button6.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button6.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button6.BorderSizePixel = 2
- Button6.Position = UDim2.new(0.0299999993, 0, 0.56, 0)
- Button6.Size = UDim2.new(0, 214, 0, 50)
- Button6.Font = Enum.Font.Code
- Button6.Text = "Plasma"
- Button6.TextColor3 = Color3.new(0, 0, 0)
- Button6.TextSize = 25
- Button6.TextWrapped = true
- Button6.MouseButton1Click:connect(function()
- if farm6 == true then farm6 = false print("Disabled")
- Button6.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm6 == false then farm6 = true print("Enabled")
- Button6.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm6()
- end)
- Button7.Name = "Button7"
- Button7.Parent = Main
- Button7.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button7.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button7.BorderSizePixel = 2
- Button7.Position = UDim2.new(0.0299999993, 0, 0.67, 0)
- Button7.Size = UDim2.new(0, 214, 0, 50)
- Button7.Font = Enum.Font.Code
- Button7.Text = "Aetherium"
- Button7.TextColor3 = Color3.new(0, 0, 0)
- Button7.TextSize = 25
- Button7.TextWrapped = true
- Button7.MouseButton1Click:connect(function()
- if farm7 == true then farm7 = false print("Disabled")
- Button7.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm7 == false then farm7 = true print("Enabled")
- Button7.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm7()
- end)
- Button8.Name = "Button8"
- Button8.Parent = Main
- Button8.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button8.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button8.BorderSizePixel = 2
- Button8.Position = UDim2.new(0.0299999993, 0, 0.78, 0)
- Button8.Size = UDim2.new(0, 214, 0, 50)
- Button8.Font = Enum.Font.Code
- Button8.Text = "Corrodium"
- Button8.TextColor3 = Color3.new(0, 0, 0)
- Button8.TextSize = 25
- Button8.TextWrapped = true
- Button8.MouseButton1Click:connect(function()
- if farm8 == true then farm8 = false print("Disabled")
- Button8.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm8 == false then farm8 = true print("Enabled")
- Button8.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm8()
- end)
- Button9.Name = "Button8"
- Button9.Parent = Main
- Button9.BackgroundColor3 = Color3.new(0.5, 0, 0)
- Button9.BorderColor3 = Color3.new(0.156863, 0.156863, 0.490196)
- Button9.BorderSizePixel = 2
- Button9.Position = UDim2.new(0.0299999993, 0, 0.89, 0)
- Button9.Size = UDim2.new(0, 214, 0, 50)
- Button9.Font = Enum.Font.Code
- Button9.Text = "Element 99"
- Button9.TextColor3 = Color3.new(0, 0, 0)
- Button9.TextSize = 25
- Button9.TextWrapped = true
- Button9.MouseButton1Click:connect(function()
- if farm9 == true then farm9 = false print("Disabled")
- Button9.BackgroundColor3 = Color3.new(.5, 0, 0)
- elseif
- farm9 == false then farm9 = true print("Enabled")
- Button9.BackgroundColor3 = Color3.new(0, .5, 0)
- end
- Farm9()
- end)
- TextLabel.Parent = Drag
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(-0.00352370739, 0, -0.048604846, 0)
- TextLabel.Size = UDim2.new(0, 227, 0, 22)
- TextLabel.Font = Enum.Font.Code
- TextLabel.Text = "JetPackSim"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextSize = 22
- TextButton.Parent = Thing
- TextButton.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.352941)
- TextButton.Position = UDim2.new(0.9, 0, 0.95, 0)
- TextButton.Size = UDim2.new(0, 90, 0, 28)
- TextButton.Font = Enum.Font.Code
- TextButton.Text = "Close"
- TextButton.TextColor3 = Color3.new(0, 0, 0)
- TextButton.TextSize = 25
- --This is for the open close button
- function Scriptz()
- local script = Instance.new('LocalScript')
- script.Parent = TextButton
- button = script.Parent
- Drag = script.Parent.Parent.Drag
- --Updates the visibility of Drag which is the parent of main when you click the open/close button
- function onClick()
- if Drag.Visible == true then
- Drag.Visible = false
- elseif Drag.Visible == false then
- Drag.Visible = true
- end
- end
- button.MouseButton1Click:connect(onClick)
- --Updates the text of the button to close or open based on visibility
- while wait(0) do
- update()
- if Drag.Visible == true then
- button.Text = "Close"
- elseif Drag.Visible == false then
- button.Text = "Open"
- end
- end
- end
- coroutine.resume(coroutine.create(Scriptz))
- function sell()
- if game.Players.LocalPlayer.PlayerGui.MainGUI.FuelDisplay.TextLabel.Text == _G.MaxSize then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(141.2047, 3.32, -3.3)
- end
- end
- function Farm1()
- while farm1 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area1.Coal.Coal.HitPart.CFrame
- sell()
- end
- end
- function Farm2()
- while farm2 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area2.Battery.Battery.HitPart.CFrame
- sell()
- end
- end
- function Farm3()
- while farm3 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area2.Solar.Solar.HitPart.CFrame
- sell()
- end
- end
- function Farm4()
- while farm4 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area4.Wind.Wind.HitPart.CFrame
- sell()
- end
- end
- function Farm5()
- while farm5 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area7.Nuclear.Nuclear.HitPart.CFrame
- sell()
- end
- end
- function Farm6()
- while farm6 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area7.Plasma.Plasma.HitPart.CFrame
- sell()
- end
- end
- function Farm7()
- while farm7 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area11.Aetherium.Aetherium.HitPart.CFrame
- sell()
- end
- end
- function Farm8()
- while farm8 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area13.Corrodium.Corrodium.HitPart.CFrame
- sell()
- end
- end
- function Farm9()
- while farm9 == true do
- update()
- wait(.2)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.workspace.Areas.Area13["Element 99"]["Element 99"].HitPart.CFrame
- sell()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement