mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 15:10:03 +00:00
Merge 1355ef7d88
into 0fb349fe0f
This commit is contained in:
commit
a6a504051c
1 changed files with 9 additions and 6 deletions
|
@ -13,11 +13,14 @@ function RateLimit.create(Identifier: string, entrance: number?, interval: numbe
|
|||
Event:SetAttribute(Identifier.."_ent", entrance)
|
||||
Event:SetAttribute(Identifier.."_int", interval)
|
||||
else
|
||||
while (not Event:GetAttribute(Identifier.."_ent")) or (not Event:GetAttribute(Identifier.."_int")) do
|
||||
task.wait(0.5)
|
||||
end
|
||||
entrance = tonumber(Event:GetAttribute(Identifier.."_ent"))
|
||||
interval = tonumber(Event:GetAttribute(Identifier.."_int"))
|
||||
task.spawn(function()
|
||||
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"))
|
||||
end)
|
||||
end
|
||||
local entrances: number = 0
|
||||
return function(incoming: number?): boolean
|
||||
|
|
Loading…
Reference in a new issue