Hey community, I’m trying to create some basic admin essential commands. I’ve gotten some issues along the way. If anyone is open to assist me, that would be great.
COMMAND:
UtilityLogs
CODE:
-- Plugin Configuration --
local pluginName = 'utilitylogs'
local pluginPrefix = ""
local pluginLevel = 1
local pluginUsage = "<User(s)>" -- leave blank if the command has no arguments
local pluginDescription = "Sees logs."
-- Example Plugin Function --
local function pluginFunction(Args) -- keep the name of the function as "pluginFunction"
local Player = Args[1]
for i,v in pairs(game.Players:GetChildren()) do
if returnPermissions(v) >= 1 then
remoteEvent:FireClient(v,"List","Utility Logs")
end
end
end
-- Return Everything to the MainModule --
local descToReturn
if pluginUsage ~= "" then
descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
else
descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription
end
return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription}
Trying to connect it to TheFurryFish’s Hand-To module.
I cannot figure out how to do it, I need to log in the basic admin this: User has given user item.