Update RateLimit.luau

This commit is contained in:
Bl4ise 2024-05-03 09:40:13 +02:00 committed by GitHub
parent 03dcaf16b8
commit 48d46e4bcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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