Darkraiii7

a

Jul 2nd, 2019
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1.  
  2. local Player = script.Parent.Parent.Parent.Parent
  3. Player.Chatted:Connect(function(input)
  4. --Variables--
  5. local total = #input
  6. --Script Variables--
  7. local reset = string.lower(input:sub(1,5))
  8. local commands = string.lower(input:sub(1,8))
  9. local watermark = string.lower(input:sub(1,9))
  10. local kick = string.lower(input:sub(1,4))
  11. local ban = string.lower(input:sub(1,3))
  12. local unban = string.lower(input:sub(1,5))
  13. local kill = string.lower(input:sub(1,4))
  14. local admin = string.lower(input:sub(1,5))
  15. local unadmin = string.lower(input:sub(1,7))
  16. local executor = string.lower(input:sub(1,8))
  17. --start
  18. if reset == 'reset' then
  19. local victim = game.Players[input:sub(7,total)]
  20. local currentpos = game.Workspace[victim.Name].Torso.CFrame
  21. victim:LoadCharacter()
  22. game.Workspace[victim.Name].Torso.CFrame = currentpos
  23. elseif commands == 'commands' then
  24. local cmdremote = script.Parent.Parent.Commands.Open:FireClient(Player)
  25. elseif watermark == 'watermark' then
  26. local endprefix = string.lower(input:sub(11,total))
  27. if endprefix == 'on' then
  28. script.Parent.Parent.Watermark.Open:FireClient(Player)
  29. elseif endprefix == 'off' then
  30. script.Parent.Parent.Watermark.Close:FireClient(Player)
  31. end
  32. elseif kick == 'kick' then
  33. local victim = game.Players[input:sub(6,total)]
  34. victim:Kick('Kicked from Server by '..Player.Name)
  35. elseif ban == 'ban' then
  36. local victim = game.Players[input:sub(5,total)]
  37. if victim:IsInGroup(5016852) then
  38. local no
  39. else
  40. local banval = Instance.new('SelectionBox')
  41. banval.Parent = game.ReplicatedStorage
  42. banval.Name = victim.Name
  43. victim:Kick('Banned!')
  44. game.Players.PlayerAdded:Connect(function(play)
  45. for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
  46. if v.Name == play.Name then
  47. play:Kick('Banned')
  48. end
  49. end
  50. end)
  51. end
  52.  
  53. elseif unban == 'unban' then
  54. local unbanname = input:sub(7,total)
  55. for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
  56. if v.Name == unbanname then
  57. v:Destroy()
  58. break
  59. end
  60. end
  61. elseif kill == 'kill' then
  62. local victim = game.Players[input:sub(6,total)]
  63. if victim:IsInGroup(5016852) then
  64. local no
  65. else
  66. game.Workspace[victim.Name].Humanoid.Health = game.Workspace[victim.Name].Humanoid.Health - 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  67. end
  68.  
  69. elseif admin == 'admin' then
  70. local victim = game.Players[input:sub(7,total)]
  71. if victim:IsInGroup(5016852) then
  72. local no
  73. else
  74. local gui = script.Parent.Parent:Clone()
  75. gui.Parent = victim.PlayerGui
  76. end
  77. elseif unadmin == 'unadmin' then
  78. local victim = game.Players[input:sub(9,total)]
  79. if victim:IsInGroup(5016852) then
  80. local no
  81. else
  82. if victim.PlayerGui:FindFirstChild('draconic') then
  83. victim.PlayerGui.draconic:Destroy()
  84. end
  85. end
  86. elseif executor == 'executor' then
  87. script.Parent.Parent.Executor.Open:FireClient(Player)
  88. end
  89. end)
Advertisement
Add Comment
Please, Sign In to add comment