Run it
Copy the script and paste it into your executor.
local RunService = game:GetService("RunService")
local LogService = game:GetService("LogService")
local ScriptContext = game:GetService("ScriptContext")
local Debris = game:GetService("Debris")
local Workspace = :()
DEBUG_MODE =
CHECK_INTERVAL =
MAX_CONNECTIONS =
EFFECT_CLEANUP_TIME =
(service, eventName)
connections = (service[eventName])
count =
_, c (connections)
c.ForeignState
c:()
count = count +
DEBUG_MODE count >
(.(, count, eventName))
(service, eventName)
connections = (service[eventName])
#connections > MAX_CONNECTIONS
i = #connections, MAX_CONNECTIONS + , -
c = connections[i]
c.ForeignState
c:()
DEBUG_MODE
(.(, eventName, MAX_CONNECTIONS))
()
_, obj (Workspace:())
obj:() obj:() obj:()
obj.Parent:()
Debris:(obj, EFFECT_CLEANUP_TIME)
(LogService, )
(ScriptContext, )
lastCheck = ()
RunService.Heartbeat:(()
() - lastCheck >= CHECK_INTERVAL
(LogService, )
(ScriptContext, )
(RunService, )
(RunService, )
()
lastCheck = ()
)
()
DEBUG_MODE
()
()
- Fixes lag from Syla-Hub and similar - Applies to any TRD script throwing errors
Universal