Advertisement
gilward

Its RAINING MEN!

Feb 20th, 2018
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. --gilward#2913
  2. --my version of raining men! (a lot worse)
  3. wait(1)
  4. math.randomseed(tick() % 1 * 1e6)
  5. sky = coroutine.create(function()
  6. while wait(0.3) do
  7. s = Instance.new("Sky",game.Lighting)
  8. s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = "rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408"
  9. s.CelestialBodiesShown = false
  10. end
  11. end)
  12.  
  13.  
  14. del = coroutine.create(function()
  15. while wait(0.3) do
  16. for i,v in pairs(workspace:GetChildren()) do
  17. if v:IsA("Model") then
  18. v:Destroy()
  19. end
  20. end
  21. end
  22. end)
  23.  
  24.  
  25.  
  26. for i,v in pairs(game.Players:GetChildren()) do
  27. v.Character.Archivable = true
  28. end
  29.  
  30. noises = {'rbxassetid://230287740','rbxassetid://271787597','rbxassetid://153752123','rbxassetid://271787503'}
  31.  
  32. sound = coroutine.create(function()
  33. a = Instance.new("Sound",workspace)
  34. a.SoundId = "rbxassetid://141509625"
  35. a.Name = "RAINING MEN"
  36. a.Volume = 58359
  37. a.Looped = true
  38. a:Play()
  39. while wait(0.2) do
  40. rainin = workspace:FindFirstChild("RAINING MEN")
  41. if not rainin then
  42. a = Instance.new("Sound",workspace)
  43. a.SoundId = "rbxassetid://141509625"
  44. a.Name = "RAINING MEN"
  45. a.Volume = 58359
  46. a.Looped = true
  47. a:Play()
  48. end
  49. end
  50. end)
  51.  
  52. msg = coroutine.create(function()
  53. while wait(0.4) do
  54. msg = Instance.new("Message",workspace)
  55. msg.Text = "Get toadroasted you bacon-haired bozos"
  56. wait(0.4)
  57. msg:Destroy()
  58. end
  59. end)
  60.  
  61.  
  62. rain = coroutine.create(function()
  63. while wait(10 % 1 * 1e2) do
  64. part = Instance.new("Part",workspace)
  65. part.Name = "Toad"
  66.  
  67. mesh = Instance.new("SpecialMesh",part)
  68.  
  69. sound = Instance.new("Sound",workspace)
  70.  
  71. part.CanCollide = false
  72. part.Size = Vector3.new(440,530,380)
  73. part.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000))
  74.  
  75. sound.SoundId = noises[math.random(1,#noises)]
  76. sound:Play()
  77. sound.Ended:connect(function()
  78. sound:Destroy()
  79. end)
  80.  
  81.  
  82. mesh.MeshType = "FileMesh"
  83. mesh.MeshId = "rbxassetid://430210147"
  84. mesh.TextureId = "rbxassetid://430210159"
  85. end
  86. end)
  87. coroutine.resume(sky)
  88. coroutine.resume(del)
  89. coroutine.resume(sound)
  90. coroutine.resume(msg)
  91. coroutine.resume(rain)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement