Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ar = true
- function Ball()
- wait(2)
- party = Instance.new("Part",game.Workspace)
- party.BrickColor = BrickColor.new("Royal purple")
- party.Transparency = 0.45
- party.BackSurface = "SmoothNoOutlines"
- party.BottomSurface = "SmoothNoOutlines"
- party.FrontSurface = "SmoothNoOutlines"
- party.LeftSurface = "SmoothNoOutlines"
- party.RightSurface = "SmoothNoOutlines"
- party.TopSurface = "SmoothNoOutlines"
- party.Size = Vector3.new(7, 7, 7)
- party.Shape = "Ball"
- party.Name = "Script"
- party.CanCollide = false
- rocket = Instance.new("RocketPropulsion")
- rocket.MaxThrust = 100000
- rocket.TargetRadius = 500
- rocket.MaxSpeed = 250
- rocket.MaxTorque = Vector3.new(0,0,0)
- rocket.Parent = party
- lethal = false
- function findandkill(player)
- if game.Players[player.Name].Character.Humanoid.Health ~= 0 then
- party.Anchored = false
- rocket.Target = game.Players[player.Name].Character.Head
- rocket:Fire()
- lethal = true
- repeat wait() until game.Players[player.Name].Character.Humanoid.Health == 0
- party.Anchored = false
- end
- end
- party.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and lethal and game.Players:GetPlayerFromCharacter(hit.Parent) then
- hit.Parent.Humanoid.Health = 0
- end
- end)
- function update()
- while wait() do
- repeat wait() until #game.Players:GetPlayers() > 0
- for _,v in pairs(game.Players:GetPlayers()) do
- findandkill(v)
- lethal = false
- end
- end
- end
- spawn(update)
- end
- Ball()
- while wait() do
- wait(0.5)
- if party.Parent == nil then
- Ball()
- end
- end
- while wait() do
- wait(0.5)
- if party.Anchored == true then
- party.Anchored = false
- end
- end
- while wait() do
- wait(0.5)
- if ar == true then
- Ball()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment