Not too hard, just divide the jetpackFuel by the total fuel and use tweenService to tween the size
local fuel = (jetpackFuel / totalFuel)
local jetpackUi = playerGui:WaitForChild("YourUI")
local frame = jetpackUi:WaitForChild("Frame") -- The frame that shows the amount of fuel
local tweenService = game:GetService("TweenService")
local size = frame.Size
local goal = {Size = UDim2.new(fuel, size.X.Offset, size.Y.Scale, size.Y.Offset)}
local tween = tweenService:Create(frame, info, goal)
tween:Play()