Advertisement
subaru112g

shield

Feb 17th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. local char = owner.Character
  2. local s = Instance.new("Part",char)
  3. local o = Instance.new("ForceField",char)
  4. o.Visible = false
  5. local humn = char.Humanoid
  6. char.Humanoid.MaxHealth = 10000000000000000000
  7. char.Humanoid.Health = 10000000000000000000
  8. s.BrickColor = BrickColor.new("Really red")
  9. s.Size = Vector3.new(8,8,8)
  10. s.Transparency = 0.8
  11. s.CanCollide = false
  12. s.Material = "Neon"
  13. local w = Instance.new("Weld",char)
  14. w.Part0 = s
  15. w.Part1 = char.Torso
  16.  
  17. function onTouched(fire)
  18. if not(fire.Parent == char) then
  19. if not(fire.Name == "Base" or fire.Name == "Baseplate") then
  20. fire.Parent:FindFirstChildOfClass("Humanoid")
  21. if hum then
  22. humn:Destroy()
  23. end
  24. fire.Parent = game.Workspace
  25. fire.CanCollide = true
  26. fire.Anchored = false
  27. fire:BreakJoints()
  28. end
  29. end
  30. end
  31. s.Touched:connect(onTouched)
  32.  
  33. while true do
  34. wait()
  35. humn.Health = 10000000000000000000
  36. local num1 = math.random(-1,1)
  37. local num2 = math.random(-1,1)
  38. local num3 = math.random(-1,1)
  39. w.C0 = CFrame.new(num1,num2,num3)
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement