
1.5k Views
116 Executions
Chat Command Script UNIVERSAL
Universal Script 📌 1 year ago
Please login to perform these actions:Does it work?
No reports yetNo 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
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
0Log in to join the conversation. Login
No comments yet. Be the first!








