Update RateLimit.luau

This commit is contained in:
Bl4ise 2024-05-02 13:18:16 +02:00 committed by GitHub
parent 0004faf544
commit 1355ef7d88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,9 +14,9 @@ function RateLimit.create(Identifier: string, entrance: number?, interval: numbe
Event:SetAttribute(Identifier.."_int", interval) Event:SetAttribute(Identifier.."_int", interval)
else else
task.spawn(function() task.spawn(function()
repeat while (not Event:GetAttribute(Identifier.."_ent") and not Event:GetAttribute(Identifier.."_int")) do
task.wait(0.5) task.wait(0.5)
until (Event:GetAttribute(Identifier.."_ent") and Event:GetAttribute(Identifier.."_int")) end
entrance = tonumber(Event:GetAttribute(Identifier.."_ent")) entrance = tonumber(Event:GetAttribute(Identifier.."_ent"))
interval = tonumber(Event:GetAttribute(Identifier.."_int")) interval = tonumber(Event:GetAttribute(Identifier.."_int"))