Universal Script 📌
1.5k Views
157 Executions

Chat Command Script UNIVERSAL

Universal Script 📌
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

you can add commands, i made this script so that ppl can add commands to it. the current ones are /ping /getserverinfo /reset

View Raw
repeat
    task.wait()
until game:IsLoaded()
do
    local parms = {
        owner = "ProphecySkondo",
        repo = "Misc",
        branch = "main",
    }
    local function Import(file)
        return loadstring(game:HttpGetAsync(("https://raw.githubusercontent.com/%s/%s/%s/%s.lua"):format(
            parms.owner, parms.repo, parms.branch, file
        )), file .. ".lua")()
    end
    Import("Syn/main")
end
assert(syn, "~ get from server")
local commands = {
    "ping",
    "getserverinfo",
    "reset"
}
local function matcher(check: table, text: string | number)
    if type(text) == 'string' then
        for _, command in ipairs(check) do
            if command:lower() == text:lower() then
                return command
            end
        end
    end
    return false
end
local commandCallbacks = {}
local function addCMD(name: string, callback: (any) -> ())
    if type(name) ~= "string" or type(callback) ~= "function" then
        warn("Invalid command registration: " .. tostring(name))
        return
    end
    commandCallbacks[name:lower()] = callback
    table.insert(commands, name:lower())


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.7k
Bumped 4 hours ago
Script hub
49.8k
12.4k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 10 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 10 hours ago
Key System
Paid
Universal Script 📌
741
221
Approved 16 hours ago
Universal Script 📌
646
2.7k
Approved 16 hours ago