local GUI = game.Players.LocalPlayer.PlayerGui.JetPack
local VALUE = script.Parent.Fuel
GUI.no = VALUE.Value
local function no()
GUI.no = VALUE.Value
end
VALUE.Changed:Connect(no)
script.Parent.Activated:Connect(function()
if VALUE.Value > 0 then
script.Parent.Handle.JetpackThrust.MaxForce = Vector3.new(0,math.huge,0)
VALUE.Value = VALUE.Value - 1
end
end)
script.Parent.Deactivated:Connect(function()
script.Parent.Handle.JetpackThrust.MaxForce = Vector3.new(0,0,0)
end)
1 Like
local GUI = game.Players.LocalPlayer:WaitForChild(“PlayerGui”).JetPack
1 Like