Sc4pterR0bl0x

Bacon Admin

Aug 7th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.50 KB | None | 0 0
  1. local players = game.Players
  2. local player = game.Players.LocalPlayer
  3. local Force_Chat = game:GetService("Chat")
  4. local Admins = {
  5.     ["ummmmimbacon"] = "Admin";
  6. }
  7. -- MADE BY ummmmimbacon PLEASE DON'T REMOVE THESE COMMENTS
  8. players.PlayerAdded:Connect(function(Player)
  9.     Player.Chatted:Connect(function(msg)
  10.         if Admins[Player.Name] then
  11.             local split_msg = msg:split(" ")
  12.         if split_msg[1] == "!kick" then
  13.                 local NameOfPlayer = split_msg[2]
  14.                 local PlayerToKick = players:FindFirstChild(NameOfPlayer)
  15.                 local reason = split_msg[3]
  16.             PlayerToKick:Kick(reason)
  17.         end
  18.         if split_msg[1] == "!music" then
  19.                 -- create a sound
  20.             sound = Instance.new("Sound", game.Workspace)
  21.             sound.SoundId = "rbxassetid://"..split_msg[2]
  22.              
  23.             if not sound.IsLoaded then
  24.                 sound.Loaded:wait()
  25.             end
  26.              
  27.             -- listen for events
  28.             sound.Played:Connect(function(soundId)
  29.                 print("Sound.Played event")
  30.             end)
  31.              
  32.             sound.Paused:Connect(function(soundId)
  33.                 print("Sound.Paused event")
  34.             end)
  35.              
  36.             sound.Resumed:Connect(function(soundId)
  37.                 print("Sound.Resumed event")
  38.             end)
  39.              
  40.             sound.Stopped:Connect(function(soundId)
  41.                 print("Sound.Stopped event")
  42.             end)
  43.              
  44.             sound:Play()
  45.             print("play", sound.Playing, sound.TimePosition) -- play true 0
  46.  
  47.                
  48.         end
  49.             if split_msg[1] == "!unmusic" then
  50.                 sound:Stop()
  51.             end
  52.             if split_msg[1] == "!kill" then
  53.                 local NameOfPlayer = split_msg[2]
  54.                 local PlayerToKick = players:FindFirstChild(NameOfPlayer)
  55.                 PlayerToKick.Character.Head:Destroy()
  56.             end
  57.             if split_msg[1] == "!talk" then
  58.                 local PlayerName = split_msg[2]
  59.                 local PlayerToTalk = players:FindFirstChild(PlayerName)
  60.                 Force_Chat:Chat(PlayerToTalk.Character.Head, split_msg[3], Enum.ChatColor.White)
  61.             end
  62.             if split_msg[1] == "!WeirdKick" then
  63.                 local NameOfPlayer = split_msg[2]
  64.                 local PlayerToPunish = players:FindFirstChild(NameOfPlayer)
  65.                 PlayerToPunish:Destroy()
  66.             end
  67.             if split_msg[1] == "!speed" then
  68.                 local NameOfPlayer = split_msg[2]
  69.                 local PlayerToSpeed = players:FindFirstChild(NameOfPlayer)
  70.                 PlayerToSpeed.Character.Humanoid.WalkSpeed = split_msg[3]
  71.             end
  72.             if split_msg[1] == "!fling" then
  73.                 local NameOfPlayer = split_msg[2]
  74.                 local PlayerToFling = players:FindFirstChild(NameOfPlayer)
  75.                 PlayerToFling.Character.Humanoid.WalkSpeed = 100000000000000000000000
  76.             end
  77.             if split_msg[1] == "!cmds" then
  78.                 print("!talk, !kill, !kick, !WeirdKick, !music, !unmusic, !speed, !fling")
  79.             end
  80.         end
  81.     end)
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment