Registry | Centralized Event system

The Registry module is a Lua utility for Roblox that manages event instances in a centralized system.

Full documentation

Roblox Module

Example usage:

local Registry = require(path.to.Registry)
local registry = Registry.new()

-- Create a RemoteEvent 
registry:RemoteEvent("PlayerJump", function(player)
    print(player.Name, "jumped")
end)

-- Create a BindableEvent
local event = registry:BindableEvent("GameStart", function()
    print("Game started")
end)
event:Fire()

-- Create a RemoteFunction 
registry:RemoteFunction("GetScore", function(player)
    return 100
end)

-- Check if an instance exists
print(registry:has("PlayerJump")) 

-- Get metadata
print(registry:meta("PlayerJump").type) -- RemoteEvent

-- Remove an instance
registry:wipe("PlayerJump")

task.wait(120)

-- Clean up everything
registry:destroy() 

Reminder registry is not made for beginner Scripters.

Screenshot_20250421_145731_com_android_chrome_ChromeTabbedActivity

2 Likes

This module is so good! I tried it, and it works as i expected and even more. I recommend it.

1 Like

Thank you so much, it’s appreciated :blue_heart:

1 Like