I am trying to make a fuel system that you lose fuel after some conditions (Throttle, RPM, Speed), but is the number too huge/small?
print(math.huge^math.huge)
print(math.huge)
while true do
wait()
local waittime = script.Parent.Parent.Throttle.Value/script.Parent.Parent.RPM.Value/script.Parent.Parent.Velocity.Value.Magnitude*99999999999
if waittime == 0 or math.huge then
else
print(waittime)
wait(waittime)
script.Parent.Value -= 0.1
if script.Parent.Value <= 0 then
script.Parent.Value = 0
script.Parent.Parent.Parent.IsOn.Value = false
end
end
end
The first two lines are me trying to understand the value of math.huge
.