Advertisement
Clyclop

Untitled

Sep 5th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. -- Raining Giant Cubes (Spam Version)
  2. -- Made By Clyclop12345
  3. -- This will lag and this was made for script builder
  4. -- If you die it'll stop
  5.  
  6.  
  7.  
  8. while true do
  9. local Part = Instance.new("Part")
  10. Part.Parent = game.Workspace
  11. Part.Position = Vector3.new ((math.random(-500, 500)),200,(math.random(-500,500)))
  12. Part.Size = Vector3.new( 50, 50, 50 )--The size
  13. Part.BrickColor = BrickColor:Random()
  14. Part.Shape = 1 -- 0 = Ball; 1= Brck; 2=Cylinder
  15. Part.Material = "Neon"
  16. Part.Locked = true
  17. Part.Anchored = false
  18. Part.CanCollide = true
  19. wait()
  20. end
  21.  
  22. function onTouched(Part)
  23. local h = Part.Parent:FindFirstChild("Humanoid")
  24. if h~= nil then
  25. h.Health = 0
  26. end
  27. end
  28. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement