-
What do you want to achieve? I want to compare a saved number with
os.time -
What is the issue? Trying both of the code blocks below, neither of them seems to result in a working product (for your information, LastSupportSend is a NumberValue).
if (player:FindFirstChild("LastSupportSend") and player.LastSupportSend.Value + 60 < os.time) or not player:FindFirstChild("LastSupportSend") then
“ServerScriptService.MainServer:683: attempt to compare number < function”
if (player:FindFirstChild("LastSupportSend") and player.LastSupportSend.Value + 60 < tonumber(os.time)) or not player:FindFirstChild("LastSupportSend") then
“ServerScriptService.MainServer:683: attempt to compare number < nil”
3. What solutions have you tried so far? I’ve tried using tonumber(os.time) as shown previously, and I’ve searched for a solution online.
How do I accurately use os.time to compare with other numbers?