Advertisement
pz_java

Ban

Sep 7th, 2017
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. if game.Players.LocalPlayer.Name == "Pedrorb03" or game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
  2. game.Players.LocalPlayer.Character.Humanoid.Name = "LolRealHumanoid"
  3. end
  4. local banned = {}
  5. local gui = Instance.new("ScreenGui",game.Players.Pedrorb03.PlayerGui) gui.Name = "You'll never guess the name"
  6. local button = Instance.new("TextButton") button.Parent = gui
  7. button.Size = UDim2.new(0.102, 0,0.084, 0)
  8. button.Position = UDim2.new(0.005, 0,0.896, 0)
  9. button.BorderSizePixel = 0
  10. button.BackgroundColor3 = Color3.new(0,0,0)
  11. button.TextScaled = true
  12. button.TextColor3 = Color3.new(255,255,255)
  13. button.Text = "Kill Everyone"
  14. local button2 = Instance.new("TextBox") button2.Parent = gui
  15. button2.Size = UDim2.new(0.102, 0,0.084, 0)
  16. button2.Position = UDim2.new(0.114, 0,0.896, 0)
  17. button2.BorderSizePixel = 0
  18. button2.BackgroundColor3 = Color3.new(0,0,0)
  19. button2.TextScaled = true
  20. button2.TextColor3 = Color3.new(255,255,255)
  21. button2.Text = "Insert Player To Kill"
  22. button2.ClearTextOnFocus = false
  23.  
  24. button2.InputEnded:connect(function()
  25. if game.Players.LocalPlayer.Name == "Pedrorb03" or game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
  26. local killed = false
  27. for _,player in pairs(game.Players:GetPlayers()) do
  28. if player.Name ~= "Pedrorb03" and player.Name ~= "TheNeonKaratedKid" then
  29. if player.Name == button2.Text then
  30. for _,child in pairs(player.Character:GetChildren()) do
  31. if child.ClassName == "Humanoid" then
  32. child.MaxHealth = 0
  33. child.Health = 0
  34. killed = true
  35. end
  36. if child.Name == "Head" or child.Name == "Torso" then
  37. child:remove()
  38. killed = true
  39. end
  40.  
  41. end
  42. end
  43. end
  44. end
  45. if killed == true then
  46. if not game.Lighting:FindFirstChild("KillingSomeone") then
  47. local effect = Instance.new("ColorCorrectionEffect",game.Lighting) effect.Contrast = 3 effect.Saturation = -1 effect.Name = "KillingSomeone"
  48. local sound = Instance.new("Sound",game.Workspace) sound.SoundId = "rbxassetid://130976109" sound:Play()
  49. wait(3.7)
  50. effect:remove()
  51. sound:remove()
  52. end
  53. end
  54. end
  55. end)
  56. local button3 = Instance.new("TextBox") button3.Parent = gui
  57. button3.Size = UDim2.new(0.102, 0,0.084, 0)
  58. button3.Position = UDim2.new(0.005, 0,0.798, 0)
  59. button3.BorderSizePixel = 0
  60. button3.BackgroundColor3 = Color3.new(0,0,0)
  61. button3.TextScaled = true
  62. button3.TextColor3 = Color3.new(255,255,255)
  63. button3.Text = "Insert Player To Ban"
  64. button3.ClearTextOnFocus = false
  65.  
  66. button3.InputEnded:connect(function()
  67. if game.Players.LocalPlayer.Name == "Pedrorb03" or game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
  68. local killed = false
  69. for _,player in pairs(game.Players:GetPlayers()) do
  70. if player.Name ~= "Pedrorb03" and player.Name ~= "TheNeonKaratedKid" then
  71. if player.Name == button3.Text then
  72. table.insert(banned,player)
  73. killed = true
  74. end
  75. end
  76. end
  77. if killed == true then
  78. if not game.Lighting:FindFirstChild("KillingSomeone") then
  79. local effect = Instance.new("ColorCorrectionEffect",game.Lighting) effect.Contrast = 3 effect.Saturation = -1 effect.Name = "KillingSomeone"
  80. local sound = Instance.new("Sound",game.Workspace) sound.SoundId = "rbxassetid://130976109" sound:Play()
  81. wait(3.7)
  82. effect:remove()
  83. sound:remove()
  84. end
  85. end
  86. end
  87. end)
  88. game:GetService("RunService").RenderStepped:connect(function()
  89. if game.Players.LocalPlayer.Name == "Pedrorb03" or game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
  90. game.Players.LocalPlayer.Character.LolRealHumanoid.MaxHealth = 10000000000000000
  91. game.Players.LocalPlayer.Character.LolRealHumanoid.Health = 10000000000000000
  92. for i = 1,#banned do
  93. if game.Players:FindFirstChild(banned[i].Name) then
  94. banned[i].Character:remove()
  95. end
  96. end
  97.  
  98. end
  99. end)
  100.  
  101. button.MouseButton1Click:connect(function()
  102. if game.Players.LocalPlayer.Name == "Pedrorb03" or game.Players.LocalPlayer.Name == "TheNeonKaratedKid" then
  103. local killed = false
  104. for _,player in pairs(game.Players:GetPlayers()) do
  105. if player.Name ~= "Pedrorb03" and player.Name ~= "TheNeonKaratedKid" then
  106. for _,child in pairs(player.Character:GetChildren()) do
  107. if child.ClassName == "Humanoid" then
  108. child.MaxHealth = 0
  109. child.Health = 0
  110. killed = true
  111. end
  112. if child.Name == "Head" or child.Name == "Torso" then
  113. child:remove()
  114. killed = true
  115. end
  116.  
  117.  
  118. end
  119. end
  120. end
  121. if killed == true then
  122. if not game.Lighting:FindFirstChild("KillingSomeone") then
  123. local effect = Instance.new("ColorCorrectionEffect",game.Lighting) effect.Contrast = 3 effect.Saturation = -1 effect.Name = "KillingSomeone"
  124. local sound = Instance.new("Sound",game.Workspace) sound.SoundId = "rbxassetid://130976109" sound:Play()
  125. wait(3.7)
  126. effect:remove()
  127. sound:remove()
  128. end
  129. end
  130.  
  131. end
  132. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement