Universal Script 📌
1.5k Views
116 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
Universal Script 📌
525.8k
336.7k
Bumped 36 minutes ago
Script hub
2.4k
2.2k
Bumped 2 hours ago
Key System
Universal Script 📌
146
14
Approved 2 hours ago
Script hub
2.8M
661.5k
Bumped 3 hours ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
177
20
Approved 4 hours ago