My script is subtracting the Value - 2 every second instead of - 1 and no, no other script is doing - 1 in case someone was curious. I don't know why it is doing this, that is why I am asking for your help!
while wait(1) do
for i,v in pairs(game.Players:GetChildren()) do
if v:FindFirstChild("PointBooster1") then
if v:FindFirstChild("PointBooster1").Value - os.time() > 0 then
v:FindFirstChild("DoublePoints").Value = true
print(os.time())
print(v:FindFirstChild("PointBooster1").Value - os.time())
v:FindFirstChild("PointBooster1").Value = v:FindFirstChild("PointBooster1").Value - 1
else
if v:FindFirstChild("DoublePoints") then
v:FindFirstChild("DoublePoints").Value = false
end
end
end
end
end
Do you guys see anything wrong or know what the problem may be? I print os.time() and it is only printing once every second so I know that isn't the problem, I have no idea why it is doing this, but please HELP! Thanks!

5 comments
Can you fix the code block?
Fixed the code block.
Note: os.time gets the client time therefor if anyone changes their clock time, weird stoof will happen.
It is a server - side script so I don't think much will happen. I am only printing it there for the reason of seeing if an actual second is passing or is it lagging or something. Anyway, is there any solutions?
os.time on ROBLOX returns the true unix time when used in a server script. I am unsure of LocalScript behaviour.