Idirina

nuclear bomb

Dec 23rd, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. local bomb = Instance.new("Part", workspace)
  2. bomb.CFrame = CFrame.new(Vector3.new(0,0,0))
  3. bomb.BrickColor = BrickColor.new("New Yeller")
  4. bomb.Anchored = true
  5. bomb.CanCollide = false
  6. bomb.Size = Vector3.new()
  7. bomb.Material = Enum.Material.Neon
  8.  
  9. local increase = 0.01
  10.  
  11. local player = Instance.new("Hint", workspace)
  12. player.Text = game:GetService("Players").LocalPlayer.Name.. " blew up the entire place."
  13. local human = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Humanoid")
  14. if human then
  15.  
  16. local camera = game.Workspace.CurrentCamera
  17.  
  18. while true do
  19. for i,v in pairs(game.Workspace:GetChildren()) do
  20. local humanoid = v:FindFirstChild("Humanoid")
  21. if humanoid and humanoid ~= human then
  22. local target = nil
  23. for i,b in pairs(v:GetChildren()) do
  24. if b:IsA("Part") or b:IsA("UnionOperation") then
  25. target = b
  26. end
  27. end
  28. if target then
  29. if (game:GetService("Players").LocalPlayer.Character.Torso.Position - target.Position).magnitude < bomb.Size.Y then
  30. target:Destroy()
  31. end
  32. end
  33. end
  34. end
  35. bomb.Size = Vector3.new(increase,increase,increase)
  36. bomb.CFrame = bomb.CFrame * CFrame.Angles(math.rad(increase),math.rad(increase),math.rad(increase))
  37. increase = increase + 1
  38. camera.CameraType = "Scriptable"
  39. camera.CFrame = CFrame.new(Vector3.new(increase * 2,increase * 2,15), bomb.Position)
  40. wait()
  41. end
  42.  
  43. else
  44.  
  45. bomb:Destroy()
  46.  
  47. end
Add Comment
Please, Sign In to add comment