Advertisement
ClockworkHorror

TEST4

Jun 29th, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. print"This script was brought to you in part by zorua"
  2.  
  3. print"WARNING! This will eventually crash the server. Just warning you"
  4.  
  5. print"If you get an error involving 'Head' than it means that the place that heads are being spawned has no floor under it"
  6.  
  7.  
  8.  
  9. --I have this section commented out, It's not needed for anything
  10. --don't know if the entire server sees the message or just you
  11. --local message = Instance.new('Message', game.Workspace)
  12. --message.Text = "It's Raining!"
  13. --wait(5)
  14. --message:Destroy() -- Remove the message
  15.  
  16.  
  17. --declaring functions
  18.  
  19. function ExplosionSound()
  20. Explode = Instance.new("Sound")
  21. Explode.Name = "Explode"
  22. Explode.Pitch = 1
  23. Explode.SoundId = "rbxasset://sounds/collide.wav"
  24. Explode.Pitch = 1
  25. Explode.PlayOnRemove = true
  26. Explode.Volume = 0.5
  27. Explode.Parent=game.Workspace
  28. Explode:Play()
  29. Explode:Destroy()
  30. end
  31.  
  32. function createsound()
  33. NubSound = Instance.new("Sound")
  34. NubSound.Name = "uuuhh"
  35. NubSound.Pitch = math.random(0.001,7.999)
  36. NubSound.SoundId = "http://www.roblox.com/asset/?id=12222242"
  37. NubSound.Pitch = 1
  38. NubSound.PlayOnRemove = true
  39. NubSound.Volume = 0.5
  40. NubSound.Parent=game.Workspace
  41. NubSound:Play()
  42. NubSound:Destroy()
  43. end
  44.  
  45. --humanoid name randomizer
  46.  
  47. local names = {
  48. "This is why you don't mess with ClockworkHorror.";
  49. }
  50.  
  51. --creating the base model
  52. ModelNub = Instance.new("Model",game.Workspace)
  53. ModelNub.Name = "1x1x1x1"
  54.  
  55. NubHead = Instance.new("Part")
  56. NubHead.Parent=ModelNub
  57. NubHead.Anchored = true
  58. NubHead.Size=Vector3.new(2,1,1)
  59. NubHead.BrickColor=BrickColor.new(24)
  60. NubHead.Name= "Head"
  61.  
  62.  
  63. HeadMeshz = Instance.new("SpecialMesh")
  64. HeadMeshz.Scale=Vector3.new(1.25,1.25,1.25)
  65. HeadMeshz.Parent=NubHead
  66.  
  67. NubDecal = Instance.new("Decal")
  68. NubDecal.Texture = "http://www.roblox.com/asset/?id=138437944"
  69. NubDecal.Face = "Front"
  70. NubDecal.Parent=NubHead
  71.  
  72. NubHuman = Instance.new("Humanoid")
  73. NubHuman.Name = "1x1x1x1"
  74. NubHuman.Parent=ModelNub
  75.  
  76. NubHuman.Health = 0
  77.  
  78. NubFire = Instance.new("Fire")
  79. NubFire.Parent=NubHead
  80.  
  81. NubScript = Instance.new("LocalScript")
  82. NubScript.Name = "Explode"
  83. NubScript.Disabled = false
  84. NubScript.Parent=NubHead
  85.  
  86. --magic happens here
  87. while wait() do
  88. local drop = ModelNub:clone()
  89. drop.Head.Position = Vector3.new(
  90. math.random(-100,100),--Change values here if you want to make the rain appear in a wider area
  91. 250,
  92. math.random(-100,100)--Also here
  93. )
  94. drop.Parent = game.Workspace
  95. drop.Head.Anchored = false
  96. drop.Name = names[math.random(1, #names)];
  97. createsound()
  98. wait(-100)--change this if you want heads to rain faster or slower, may break sound
  99. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement