Sir_Spaceboi

basic admin

Mar 21st, 2021
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.88 KB | None | 0 0
  1. --[[
  2.    
  3.      ____                                  
  4.     /\  _`\                    __          
  5.     \ \ \L\ \     __      ____/\_\    ___  
  6.      \ \  _ <'  /'__`\   /',__\/\ \  /'___\
  7.       \ \ \L\ \/\ \L\.\_/\__, `\ \ \/\ \__/
  8.        \ \____/\ \__/.\_\/\____/\ \_\ \____\
  9.         \/___/  \/__/\/_/\/___/  \/_/\/____/
  10.                                            
  11.                
  12.     Admin Essentials v2
  13.     Plugin Documentation
  14.     *coming soon^tm
  15.    
  16.     If you have any questions regarding Plugins, contact TheFurryFish.
  17.    
  18. --]]
  19.  
  20. local Plugin = function(...)
  21.     local Data = {...}
  22.  
  23.     -- Included Functions and Info --
  24.     local remoteEvent = Data[1][1]
  25.     local remoteFunction = Data[1][2]
  26.     local returnPermissions = Data[1][3]
  27.     local Commands = Data[1][4]
  28.     local Prefix = Data[1][5]
  29.     local actionPrefix = Data[1][6]
  30.     local returnPlayers = Data[1][7]
  31.     local cleanData = Data[1][8]
  32.  
  33.     -- Plugin Configuration --
  34.     local pluginName = 'host'
  35.     local pluginPrefix = Prefix
  36.     local pluginLevel = 2
  37.     local pluginUsage = "<User(s)>" -- leave blank if the command has no arguments
  38.     local pluginDescription = "Host a user!"
  39.  
  40.     -- Example Plugin Function --
  41.     local function pluginFunction(Args) -- keep the name of the function as "pluginFunction"
  42.         local Player = Args[1]
  43.         local Victims = returnPlayers(Player,Args[3],Args[2]) if not Victims then return end -- this will ignore the command if you're not include the player(s).
  44.         for a,b in next,Victims do
  45.             game.Workspace:FindFirstChild(b).Character.Head.ExtraTag.NameText.Text = "HOST"
  46.         end
  47.     end
  48.  
  49.     -- Return Everything to the MainModule --
  50.     local descToReturn
  51.     if pluginUsage ~= "" then
  52.         descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
  53.     else
  54.         descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription
  55.     end
  56.  
  57.     return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription}
  58. end
  59.  
  60. return Plugin
Advertisement
Add Comment
Please, Sign In to add comment