I've tried this:
function UseFuel() if script.Parent.Parent.Drive.Occupant.Changed then for i = 1, script.Parent.Fuel.Value do script.Parent.Fuel = script.Parent.Fuel - 1 end end end script.Parent.Parent.Drive.Occupant.Changed:connect(UseFuel)
But the output is always the same:
Workspace.Sedan.FuelPeice.FuelScript:60: attempt to index field 'Occupant' (a nil value) 11:42:29.181 - Stack Begin 11:42:29.182 - Script 'Workspace.Sedan.FuelPeice.FuelScript', Line 60 11:42:29.183 - Stack End