Advertisement
centralalien

Untitled

Apr 5th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. function particle(p, b)
  2. local a = Instance.new("ParticleEmitter", p)
  3. a.Rate = 750
  4. a.Lifetime = NumberRange.new(20, 30)
  5. a.VelocitySpread = 200
  6. a.Texture = b
  7. end
  8.  
  9. function decal(p, b)
  10. local sides = {"Back", "Bottom", "Front", "Left", "Right", "Top"}
  11. for i, v in pairs(sides) do
  12. local a = Instance.new("Decal", p)
  13. a.Texture = b
  14. a.Face = v
  15. end
  16. end
  17.  
  18. local function skybox(x)
  19. local sky = Instance.new("Sky",game.Lighting)
  20. local fcs={"Bk","Dn","Ft","Lf","Rt","Up"}
  21. for i,v in pairs(fcs) do
  22. sky["Skybox"..v]=x
  23. end
  24. end
  25.  
  26. function recurse(x)
  27. for i, v in pairs(x:GetChildren()) do
  28. if v:IsA("BasePart") then
  29. particle(v, "rbxassetid://67202156")
  30. decal(v, "rbxassetid://67202156")
  31. end
  32. if #(v:GetChildren())>0 then
  33. recurse(v)
  34. end
  35. end
  36. end
  37. skybox("rbxassetid://67202156")
  38. recurse(game)
  39. local mu = Instance.new("Sound", game.Workspace)
  40. mu.Volume = 1
  41. mu.Looped = true
  42. mu.Pitch = 1
  43. mu.SoundId = "rbxassetid://154664102"
  44. mu:Play()
  45. end)},
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement