Advertisement
Demonlord27

test

Dec 15th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. if player then do wait(3)
  3. local char = player.Character
  4.  
  5.  
  6. local cankill = Instance.new("BoolValue")
  7. cankill.Name = "CanKill"
  8. cankill.Value = true
  9.  
  10. local box = Instance.new("Part")
  11. box.Size = Vector3.new(5.5,8,5.5)
  12. box.Name = "Shield"
  13. box.CFrame = char.Torso.CFrame
  14. box.Anchored = true
  15. box.CanCollide = false
  16. box.Material = "Neon"
  17. box.Transparency = 0.75
  18. box.BrickColor = BrickColor:Red()
  19. box.Parent = game.Workspace
  20. cankill.Parent = box
  21.  
  22.  
  23. local a = Instance.new("Part")
  24. a.Size = Vector3.new(5, 5, 2)
  25. a.Name = "Shield"
  26. a.Anchored = true
  27. a.CanCollide = true
  28. a.Material = "Neon"
  29. a.Transparency = 1
  30. a.BrickColor = BrickColor:Black()
  31. a.Parent = box
  32.  
  33.  
  34. local b = Instance.new("Part")
  35. b.Size = Vector3.new(5, 5, 2)
  36. b.Name = "Shield"
  37. b.Anchored = true
  38. b.CanCollide = true
  39. b.Material = "Neon"
  40. b.Transparency = 1
  41. b.BrickColor = BrickColor:Black()
  42. b.Parent = box
  43.  
  44. game:GetService("RunService").RenderStepped:connect(function()
  45. wait()
  46. box.CFrame = char.Torso.CFrame
  47. a.CFrame = char.Torso.CFrame * CFrame.new(0,0,4)
  48. b.CFrame = char.Torso.CFrame * CFrame.new(0,0,-4)
  49. char:FindFirstChild("Humanoid")
  50. char.Humanoid.MaxHealth = math.huge
  51. char.Humanoid.Health = math.huge
  52. char.Humanoid.WalkSpeed = 20
  53. char.Humanoid.JumpPower = 65
  54. end)
  55.  
  56. box.Touched:connect(function(hit)
  57. if hit.Parent ~= player.Character and cankill.Value == true then
  58. if hit.Parent:FindFirstChild("Humanoid") then
  59. hit.Parent:BreakJoints()
  60. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-25
  61. for i,body in pairs (hit.Parent:GetChildren()) do
  62. if body:IsA("Part") then
  63. body:Remove()
  64. end
  65. end
  66. end
  67. end end)
  68.  
  69. a.Touched:connect(function(hitt)
  70. hitt:Remove()
  71.  
  72. end)
  73.  
  74. b.Touched:connect(function(hittt)
  75. hittt:Remove()
  76.  
  77. end)
  78.  
  79.  
  80. player.Chatted:connect(function(c)
  81. if c == "KillOnTouchEnable" then
  82. box.BrickColor = BrickColor:Red()
  83. cankill.Value = true
  84. else if c == "KillOnTouchDisable"
  85. then
  86. box.BrickColor = BrickColor:Black()
  87. cankill.Value = false
  88. else if c == "Visible=false" then
  89. box.Transparency = 1
  90. else if c == "Visible=true" then
  91. box.Transparency = 0.75
  92. else if c == "cmds" then
  93. print('KillOnTouchEnable, KillOnTouchDisable, Visible=false Visible=true, cnds')
  94. end end end end end end) end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement