Update RateLimit.luau

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

View file

@ -16,7 +16,7 @@ function RateLimit.create(Identifier: string, entrance: number?, interval: numbe
task.spawn(function() task.spawn(function()
repeat repeat
task.wait(0.5) task.wait(0.5)
until Event:GetAttribute(Identifier.."_ent") or Event:GetAttribute(Identifier.."_int") until (Event:GetAttribute(Identifier.."_ent") and Event:GetAttribute(Identifier.."_int"))
entrance = tonumber(Event:GetAttribute(Identifier.."_ent")) entrance = tonumber(Event:GetAttribute(Identifier.."_ent"))
interval = tonumber(Event:GetAttribute(Identifier.."_int")) interval = tonumber(Event:GetAttribute(Identifier.."_int"))