faster fire all events
Key RequiredUniversal

faster fire all events

Universal ScriptIntihaIntiha 860 views 2.8K executesUpdated Dec 22, 2025
Unrated
00
Lua Script•8 lines (174 chars)
local descendants = game:GetDescendants()

for i = 1, #descendants do
    local v = descendants[i]
    if v.ClassName == "RemoteEvent" then
        v:FireServer()
    end
end

Features & Information

faster version of eh's one at https://scriptblox.com/script/Universal-Script-fire-all-remote-events-77187

Community Comments (8)

CatBoyyCatBoyyDec 22, 2025

ew GetDescendants

Replying to @CatBoyy
IntihaIntihaDec 22, 2025(edited)

@CatBoyy bro, this is faster + single pass, array indexing, minimal checks, no extra work, and who cares if its friggin getdescendants, theres no faster way that uses O(1)

Replying to @Intiha
CatBoyyCatBoyyDec 22, 2025

@Intiha Imagine not using better GetDescendants

Replying to @CatBoyy
IntihaIntihaDec 22, 2025

@CatBoyy huh.. so do you mean scoping the search?

Replying to @Intiha
CatBoyyCatBoyyDec 22, 2025

@Intiha QueryDescendants

Replying to @CatBoyy
IntihaIntihaDec 22, 2025

@CatBoyy QueryDescendants could reduce constant factors by filtering, but asymptotically it’s still O(n). my version is still near-optimal for universal one-shot scans.

Replying to @CatBoyy
IntihaIntihaDec 22, 2025(edited)

+ O(1) is impossible → scanning an unknown tree of nodes must be O(n), you cannot find all RemoteEvents without touching each node at least once Any claim of O(1) here is just wishful thinking

lightnohelplightnohelpDec 22, 2025

*

More Scripts for Universal Scripts