Sc4pterR0bl0x

Custom Admin

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