talkazuki5

krabs1

Aug 5th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. local textures = {"252584210","48940159","270727389","96859632","242641126","137947834"}
  2. local faces = {"Front", "Right", "Left", "Top", "Back", "Bottom"}
  3.  
  4. function decal(part)
  5. for i=1,6,1 do
  6. print(i)
  7. local dec = Instance.new("Decal", part)
  8. dec.Face = faces[i]
  9. dec.Texture = "rbxassetid://" .. textures[math.random(1,#textures)]
  10. end
  11. end
  12.  
  13. function loopParts(model)
  14. for i,v in pairs(model:GetChildren()) do
  15. if v:IsA("UnionOperation") and v.Parent:findFirstChild("Humanoid") == nil or v:IsA("Part") and v.Parent:findFirstChild("Humanoid") == nil then
  16. decal(v)
  17. local particle = Instance.new("ParticleEmitter", v)
  18. particle.Texture = "rbxassetid://" .. textures[math.random(1,#textures)]
  19. elseif v:IsA("Model") or v:IsA("Folder") then
  20. loopParts(v)
  21. end
  22. end
  23. end
  24.  
  25. local sky = Instance.new("Sky", game.Lighting)
  26. sky.SkyboxBk = "rbxassetid://" .. textures[math.random(1,#textures)]
  27. sky.SkyboxDn = "rbxassetid://" .. textures[math.random(1,#textures)]
  28. sky.SkyboxFt = "rbxassetid://" .. textures[math.random(1,#textures)]
  29. sky.SkyboxLf = "rbxassetid://" .. textures[math.random(1,#textures)]
  30. sky.SkyboxRt = "rbxassetid://" .. textures[math.random(1,#textures)]
  31. sky.SkyboxUp = "rbxassetid://" .. textures[math.random(1,#textures)]
  32. sky.StarCount = 0
  33.  
  34. local mus = Instance.new("Sound", game.Workspace)
  35. mus.SoundId = "rbxassetid://427265119"
  36. mus.Volume = 10
  37. mus.Looped = true
  38. wait()
  39. mus:Play()
  40.  
  41. loopParts(game.Workspace)
Add Comment
Please, Sign In to add comment