Advertisement
4zx16

Custom Admin V1

Jul 9th, 2022 (edited)
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.65 KB | Source Code | 0 0
  1. --[[
  2.     || 🧛 CUSTOM ADMIN V1 🧛:
  3.     || 📜 AUTHOR: @4zx16
  4. ]]
  5. local Prefix = ":"
  6. local RunService = game:GetService("RunService")
  7.  
  8. local Commands = {
  9.     ["Shutdown"] = Prefix.."shutdown";
  10.     ["Respawn"] = Prefix.."re";
  11.     ["Dummy"] = Prefix.."dummy";
  12.     ["R6"] = Prefix.."r6";
  13.     ["Donate"] = Prefix.."donate"
  14. }
  15. local Config_Settings = {
  16.     Donate = 1367570123;
  17.     Admins = {game.CreatorId}
  18. }
  19. local G = {
  20.     MPS = game:GetService("MarketplaceService");
  21.     Character = require(10879140793);
  22.     Dummy = require(10879149445);
  23. }
  24. local function Find(player)
  25.     player.Chatted:Connect(function(msg)
  26.  
  27.         if msg:sub(1, Commands.Respawn:len()):lower() == Commands.Respawn:lower() then
  28.             player:LoadCharacter()
  29.         end
  30.         if msg:sub(1, Commands.Dummy:len()):lower() == Commands.Dummy:lower() then
  31.             G.Dummy(player.Name)
  32.         end
  33.         if msg:sub(1, Commands.R6:len()):lower() == Commands.R6:lower() then
  34.             G.Character(player.Name)
  35.         end
  36.         if msg:sub(1, Commands.Donate:len()):lower() == Commands.Donate:lower() then
  37.             G.MPS:PromptProductPurchase(player, Config_Settings.Donate)
  38.         end
  39.         if msg:sub(1, Commands.Shutdown:len()):lower() == Commands.Shutdown:lower() then
  40.             for _, v in pairs(game.Players:GetPlayers()) do
  41.                 for _, List in pairs(Config_Settings.Admins) do
  42.  
  43.                     if player.Name == List or player.UserId == List then
  44.                         v:Kick("requested by ".. player.Name)
  45.                     end
  46.                 end
  47.             end
  48.         end
  49.     end)
  50. end
  51. game.Players.PlayerAdded:Connect(Find)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement