Theskyler900

ITZ RAINING MEN

Jul 19th, 2017
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. local p = game.Players.LocalPlayer.Character
  2. local weld = Instance.new("Weld",p.Torso)
  3. weld.Part0 = p.Torso
  4.  
  5. local train = Instance.new("Part",p.Torso)
  6. train.Anchored = true
  7. train.CanCollide = false
  8. train.Size = Vector3.new(3,2,6)
  9. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  10. weld.Part1 = train
  11. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)
  12. train.Anchored = false
  13. local TrainMesh = Instance.new("SpecialMesh",train)
  14. TrainMesh.MeshType = Enum.MeshType.FileMesh
  15. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  16. TrainMesh.MeshId = "rbxassetid://430210147"
  17. TrainMesh.TextureId = "rbxassetid://430210159"
  18.  
  19.  
  20. local weld2 = Instance.new("Weld",p.Torso)
  21. weld2.Part0 = p.Torso
  22. local Smoke = Instance.new("Part",p.Torso)
  23. Smoke.Anchored = true
  24. Smoke.CanCollide = false
  25. Smoke.Size = Vector3.new(1,1,1)
  26. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  27. weld2.Part1 = Smoke
  28. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  29. Smoke.Anchored = false
  30. Smoke.Transparency = 1;
  31.  
  32. local Particle = Instance.new("ParticleEmitter",Smoke)
  33. Particle.Rate = 50;
  34. Particle.Speed = NumberRange.new(30,60);
  35. Particle.VelocitySpread = 4;
  36. Particle.Texture = "http://www.roblox.com/asset/?id=50607824"
  37.  
  38. local Light = Instance.new("SpotLight",train)
  39. Light.Angle = 45;
  40. Light.Brightness = 100;
  41. Light.Face = Enum.NormalId.Back;
  42. Light.Range = 30;
  43.  
  44. p.Humanoid.WalkSpeed = 60;
  45.  
  46.  
  47. for i,v in pairs(p:GetChildren()) do
  48. if v:IsA("Part") then
  49. v.Transparency = 1;
  50. elseif v:IsA("Hat") then
  51. v:Destroy()
  52. elseif v:IsA("Model") then
  53. v:Destroy()
  54. end
  55. end
  56.  
  57. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  58. train.Touched:connect(function(p)
  59. if p.Parent then
  60. if p.Parent:IsA("Model") then
  61. if game.Players:FindFirstChild(p.Parent.Name) then
  62. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  63. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  64. local Whistle = SFX(428593644)
  65. Whistle:Play()
  66. end
  67. end
  68. end
  69. end
  70. end)
  71.  
  72. local Music = SFX(222274242)
  73. Music.Looped = true;
  74. wait(1)
  75. Music:Play();
  76. wait(1)
  77.  
  78. local song = Instance.new("Sound", game.Workspace)
  79. song.SoundId = "rbxassetid://169505671"
  80. song.Volume = 1
  81. song.Looped = true
  82. song.Name = "IT'S RAINING MEN!"
  83. song:Play()
  84.  
  85. local sky = Instance.new("Sky", game.Lighting)
  86. sky.CelestialBodiesShown = false
  87. sky.SkyboxBk = "http://www.roblox.com/asset/?id=740491623"
  88. sky.SkyboxDn = "http://www.roblox.com/asset/?id=740491623"
  89. sky.SkyboxFt = "http://www.roblox.com/asset/?id=740491623"
  90. sky.SkyboxLf = "http://www.roblox.com/asset/?id=740491623"
  91. sky.SkyboxRt = "http://www.roblox.com/asset/?id=740491623"
  92. sky.SkyboxUp = "http://www.roblox.com/asset/?id=740491623"
  93.  
  94. local randomnoises = {"rbxassetid://230287740","rbxassetid://271787597","rbxassetid://153752123","rbxassetid://271787503"}
  95.  
  96. local makeitrain = coroutine.create(function()
  97. while wait() do
  98. local toad = Instance.new("Part", game.Workspace)
  99. toad.Name = "Toad"
  100. toad.Size = Vector3.new(220,265,190)
  101. toad.TopSurface = "Smooth"
  102. toad.BottomSurface = "Smooth"
  103. toad.CanCollide = false
  104. local mesh = Instance.new("SpecialMesh", toad)
  105. mesh.MeshId = "rbxassetid://430210147"
  106. mesh.TextureId = "rbxassetid://430210159"
  107. mesh.Scale = Vector3.new(0.5,0.5,0.5)
  108. toad.Position = Vector3.new(math.random(-1000,1000), math.random(300,1000), math.random(-1000,1000))
  109. toad.Rotation = Vector3.new(0, math.random(-180,180), 0)
  110. local noise = Instance.new("Sound", toad)
  111. noise.Volume = 1
  112. noise.EmitterSize = 200
  113. local chosennoise = randomnoises[math.random(1,#randomnoises)]
  114. noise.SoundId = chosennoise
  115. noise:Play()
  116. local lighting = game:GetService("Lighting")
  117. lighting.Ambient = Color3.new(math.random(255)/255, math.random(255)/255, math.random(255)/255)
  118. local a0 = Instance.new("Attachment", toad)
  119. a0.Name = "TrailAttachment0"
  120. a0.Position = Vector3.new(0, 50, 145)
  121. local a1 = Instance.new("Attachment", toad)
  122. a1.Name = "TrailAttachment1"
  123. a1.Position = Vector3.new(0, 50, -145)
  124. local trail = Instance.new("Trail", toad)
  125. trail.Attachment0 = a0
  126. trail.Attachment1 = a1
  127. trail.FaceCamera = true
  128. trail.Lifetime = 1
  129. trail.Transparency = NumberSequence.new(0,0.5,0,1,1,0)
  130. trail.Texture = "http://www.roblox.com/asset/?id=102124677"
  131. --trail.Color = Color3.new(math.random(255)/255, math.random(255)/255, math.random(255)/255)
  132. wait(0.1)
  133. end
  134. end)
  135.  
  136.  
  137. local createmessage = coroutine.create(function()
  138. while wait(0.4355) do
  139. local message = Instance.new("Message", game.Workspace)
  140. message.Text = "IT'S RAINING MEN!"
  141. local hint = Instance.new("Hint", game.Workspace)
  142. hint.Text = "IT'S RAINING MEN!"
  143. wait(0.4355)
  144. message:Destroy()
  145. hint:Destroy()
  146. end
  147. end)
  148.  
  149.  
  150. coroutine.resume(createmessage)
  151. coroutine.resume(makeitrain)
Add Comment
Please, Sign In to add comment