RateLimiter
tip
This should be constructed for each connection.
Constructs a middleware function with the settings you select.
local newLimiter = Ratelimiter(60, true)
--Or use it like this:
NeoNet:Connect("SomeEvent", function()
--do something
end, RateLimiter(0.5, true))
--OR if you want to dynamically change the rate use it like this:
local limiterInfo = {60, true}
NeoNet:Connect("SomeEvent", function()
--do something
end, RateLimiter(limiterInfo))
--later/somewhere else
limiterInfo[1] = 30
if you want to create your own middleware check out the docs page on it.