Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hasMesh(Part)
- local c = Part:GetChildren()
- for i = 1, #c do
- if (c[i]:IsA("SpecialMesh")) then
- return true
- end
- end
- end
- function Paint(Brick)
- if (Brick:findFirstChild("8bit") == nil) then
- if (hasMesh(Brick)) then return end
- if (Brick.Transparency == 1) then return end
- for i = 0, 5 do
- local t = Instance.new("Texture")
- t.Name = "8bit"
- t.Face = i
- t.StudsPerTileU = 0.5
- t.StudsPerTileV = 0.5
- t.Texture = "http://www.roblox.com/asset/?id=42896454"
- t.Parent = Brick
- end
- end
- Brick.Material = "SmoothPlastic"
- end
- function Search(Object)
- -- wait()
- if (Object:IsA("BasePart")) then
- coroutine.resume(coroutine.create(Paint), Object)
- end
- local Children = Object:GetChildren()
- for X = 1, # Children do
- Search(Children[X])
- end
- end
- function bitmaker()
- Search(game.Workspace)
- end
- Search(game.Workspace)
- game.Workspace.ChildAdded:connect(bitmaker)
- local bgm = Instance.new("Sound",workspace)
- bgm.Pitch = 1
- bgm.Volume = 1
- bgm.SoundId = "rbxassetid://420736255"
- bgm:Play()
- print(_VERSION)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement