Events.RebirthEvent.OnServerEvent:connect(function(p)
local Data = Storage.GetData(p.UserId)
if Data.Fuel >= 1000 then
local Trails = Data.Trails
Data.Rebirths = Data.Rebirths +1
Data.Speed = Data.Speed +1
Data.Fuel = Data.Fuel -1000
end
end)
ERROR: 22:47:09.223 - ServerScriptService.Events:62: attempt to compare number with table
--Other events that work
Events.Trailsahundred.OnServerEvent:connect(function(p,cmd, trail)
local Data = Storage.GetData(p.UserId)
if cmd == 'Buy' then
if Data.Coins >= 250 and not FindTrail(Data.Trails,trail) then
local Trails = Data.Trails
table.insert(Data.Trails,{Name = trail})
Data.Coins = Data.Coins - 250
end
elseif cmd == 'Equip' then
if FindTrail(Data.Trails,trail) then
Data.EquippedT = trail
end
end
end)
Not sure how to fix this. :/

5 comments
There is no line 62. What line from this snippet is line 62?
Line 62: if Data.Fuel >= 1000 then
This doesn't have anything to do with Remotes
It's likely because Data.Fuel is a table. Do post the other scripts containing this.
Posted above