local player = game.Players.LocalPlayer
local car = script.Parent.Car.Value
local Seat = car.DriveSeat
local Beep = script.Beep
local Note = script.Parent.Note
while true do
if Seat.Fuel.Value < 0.1 then
Beep.Playing = true
Note.Visible = true
Note.Text = "'You are out of fuel "..(player.name)..",try roll to the pit!'"
elseif Seat.Fuel.Value < 5 then
wait(10)
Beep.Playing = true
Note.Visible = true
Note.Text = "'You are nearly out of fuel "..(player.name)..",consider filling up bruh'"
wait(2)
Note.Visible = false
elseif Seat.Health.Value < 100 then
Beep.Playing = true
wait(10)
Note.Visible = true
Note.Text = "'The kart is highly damaged "..(player.name)..",consider pitting up bruh'"
wait(2)
Note.Visible = false
elseif Seat.Fuel.Value > 0 then
Note.Visible = false
end
wait(0.1)
end
Beep is inside this script and its in a GUI, It works in studio though

2 comments
Is this script a LocalScript?
First of all we need to know is you use a localscript or normal script, next thing you need to learn is using events thats what helps with FE games.