Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local textures = {"252584210","48940159","270727389","96859632","242641126","137947834"}
- local faces = {"Front", "Right", "Left", "Top", "Back", "Bottom"}
- function decal(part)
- for i=1,6,1 do
- print(i)
- local dec = Instance.new("Decal", part)
- dec.Face = faces[i]
- dec.Texture = "rbxassetid://" .. textures[math.random(1,#textures)]
- end
- end
- function loopParts(model)
- for i,v in pairs(model:GetChildren()) do
- if v:IsA("UnionOperation") and v.Parent:findFirstChild("Humanoid") == nil or v:IsA("Part") and v.Parent:findFirstChild("Humanoid") == nil then
- decal(v)
- local particle = Instance.new("ParticleEmitter", v)
- particle.Texture = "rbxassetid://" .. textures[math.random(1,#textures)]
- elseif v:IsA("Model") or v:IsA("Folder") then
- loopParts(v)
- end
- end
- end
- local sky = Instance.new("Sky", game.Lighting)
- sky.SkyboxBk = "rbxassetid://" .. textures[math.random(1,#textures)]
- sky.SkyboxDn = "rbxassetid://" .. textures[math.random(1,#textures)]
- sky.SkyboxFt = "rbxassetid://" .. textures[math.random(1,#textures)]
- sky.SkyboxLf = "rbxassetid://" .. textures[math.random(1,#textures)]
- sky.SkyboxRt = "rbxassetid://" .. textures[math.random(1,#textures)]
- sky.SkyboxUp = "rbxassetid://" .. textures[math.random(1,#textures)]
- sky.StarCount = 0
- local mus = Instance.new("Sound", game.Workspace)
- mus.SoundId = "rbxassetid://427265119"
- mus.Volume = 10
- mus.Looped = true
- wait()
- mus:Play()
- loopParts(game.Workspace)
Add Comment
Please, Sign In to add comment