mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
Update RateLimit.luau
This commit is contained in:
parent
0004faf544
commit
1355ef7d88
1 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ function RateLimit.create(Identifier: string, entrance: number?, interval: numbe
|
|||
Event:SetAttribute(Identifier.."_int", interval)
|
||||
else
|
||||
task.spawn(function()
|
||||
repeat
|
||||
task.wait(0.5)
|
||||
until (Event:GetAttribute(Identifier.."_ent") and Event:GetAttribute(Identifier.."_int"))
|
||||
while (not Event:GetAttribute(Identifier.."_ent") and not Event:GetAttribute(Identifier.."_int")) do
|
||||
task.wait(0.5)
|
||||
end
|
||||
|
||||
entrance = tonumber(Event:GetAttribute(Identifier.."_ent"))
|
||||
interval = tonumber(Event:GetAttribute(Identifier.."_int"))
|
||||
|
|
Loading…
Reference in a new issue