DontBlinkDrWho

Untitled

May 12th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.65 KB | None | 0 0
  1. ar = true
  2. function Ball()
  3.    
  4. wait(2)
  5. party = Instance.new("Part",game.Workspace)
  6. party.BrickColor = BrickColor.new("Royal purple")
  7. party.Transparency = 0.45
  8. party.BackSurface = "SmoothNoOutlines"
  9. party.BottomSurface = "SmoothNoOutlines"
  10. party.FrontSurface = "SmoothNoOutlines"
  11. party.LeftSurface = "SmoothNoOutlines"
  12. party.RightSurface = "SmoothNoOutlines"
  13. party.TopSurface = "SmoothNoOutlines"
  14. party.Size = Vector3.new(7, 7, 7)
  15. party.Shape = "Ball"
  16. party.Name = "Script"
  17. party.CanCollide = false
  18. rocket = Instance.new("RocketPropulsion")
  19. rocket.MaxThrust = 100000
  20. rocket.TargetRadius = 500
  21. rocket.MaxSpeed = 250
  22. rocket.MaxTorque = Vector3.new(0,0,0)
  23. rocket.Parent = party
  24. lethal = false
  25.  
  26.  
  27.  
  28. function findandkill(player)
  29. if game.Players[player.Name].Character.Humanoid.Health ~= 0 then
  30. party.Anchored = false
  31. rocket.Target = game.Players[player.Name].Character.Head
  32. rocket:Fire()
  33. lethal = true
  34. repeat wait() until game.Players[player.Name].Character.Humanoid.Health == 0
  35. party.Anchored = false
  36. end
  37. end
  38.  
  39. party.Touched:connect(function(hit)
  40. if hit.Parent:FindFirstChild("Humanoid") and lethal and game.Players:GetPlayerFromCharacter(hit.Parent) then
  41. hit.Parent.Humanoid.Health = 0
  42. end
  43. end)
  44.  
  45. function update()
  46. while wait() do
  47. repeat wait() until #game.Players:GetPlayers() > 0
  48. for _,v in pairs(game.Players:GetPlayers()) do
  49. findandkill(v)
  50. lethal = false
  51. end
  52. end
  53. end
  54. spawn(update)
  55. end
  56.  
  57. Ball()
  58.  
  59. while wait() do
  60.     wait(0.5)
  61.     if party.Parent == nil then
  62.         Ball()
  63.     end
  64. end
  65.  
  66. while wait() do
  67.     wait(0.5)
  68.     if party.Anchored == true then
  69.         party.Anchored = false
  70.     end
  71. end
  72.  
  73. while wait() do
  74. wait(0.5)
  75. if ar == true then
  76. Ball()
  77. end
  78. end
Advertisement
Add Comment
Please, Sign In to add comment