Advertisement
Guest User

Tactical's Admin

a guest
Dec 15th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.31 KB | None | 0 0
  1. local m = {}
  2.  
  3.  
  4. m.Adminlist = {
  5.     -1
  6.     -2
  7. }
  8. local Owner = {"tacticalmanx75"}
  9. local SuperAdmin = {""}
  10. local Admin = {""}
  11. local Vip = {""}
  12. local Admins = {"tacticalmanx75"}
  13. local aList = {m.Adminlist,Admins}
  14. m.commandstart = ";"
  15.  
  16.  
  17. function CommandStarted(Player)
  18.     Player.Chatted:Connect(function(message)
  19.         local mouse = Player:GetMouse()
  20.         for i,AdminName in ipairs(Admins) do
  21.             if Player.Name == AdminName then
  22.                 if message:sub(1,6) == m.commandstart.."kill " then
  23.                     local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
  24.                     if TargetPlayer then
  25.                         local Char = TargetPlayer.Character
  26.                         if Char then
  27.                             Char.Humanoid.Health = 0
  28.                         end
  29.                     end
  30.                 end
  31.                 if message:sub(1,6) == m.commandstart.."kick " then
  32.                     local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
  33.                     if TargetPlayer then
  34.                         TargetPlayer:Kick("Kicked by "..Player.Name)
  35.                     end
  36.                 end
  37.                 if message:sub(1,7) == m.commandstart.."reload" then
  38.                     Player:LoadCharacter()
  39.                 end
  40.                 if message:sub(1,7) == m.commandstart.."rejoin" then
  41.                     game:GetService("TeleportService"):Teleport(game.PlaceId, Player)
  42.                 end
  43.                 if message:sub(1,6) == m.commandstart.."ff" then
  44.                     local ff = Instance.new("ForceField")
  45.                     ff.Visible = true
  46.                     ff.Parent = Player.Character
  47.                 end
  48.                 if message:sub(1,9) == m.commandstart.."spectate" then
  49.                     local parts = Player.Character:GetChildren()
  50.                     for i,v in pairs(parts) do
  51.                         if v:IsA("Part") then
  52.                             v.Transparency = 1
  53.                         end
  54.                         if v:IsA("MeshPart") then
  55.                             v.Transparency = 1
  56.                         end
  57.                         if v:IsA("BasePart") then
  58.                             v.Transparency = 1
  59.                         end
  60.                         if v:IsA("WedgePart") then
  61.                             v.Transparency = 1
  62.                         end
  63.                     end
  64.                 end
  65.                 if message:sub(1,6) == m.commandstart.."god" then
  66.                     Player.Character.Humanoid.MaxHealth = 100000000
  67.                     Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth
  68.                 end
  69.                 if message:sub(1,6) == m.commandstart.."speed" then
  70.                     local speed = message:sub(7)
  71.                     Player.Character.Humanoid.WalkSpeed = speed
  72.                 end
  73.                 if message:sub(1,6) == m.commandstart.."jumpp" then
  74.                     local jumppower = message:sub(7)
  75.                     Player.Character.Humanoid.JumpPower = jumppower
  76.                 end
  77.         end
  78.         end
  79.     end)
  80. end
  81.  
  82. game.Players.PlayerAdded:Connect(CommandStarted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement