Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sizem = 3
- local terrainmaterial = ("Slate")
- while true do
- wait(0.01)
- game.Workspace.Terrain:Clear()
- for i,w in pairs(game.Workspace:getChildren()) do
- if w.ClassName == ("Model") then
- for i,v in pairs(w:GetChildren()) do
- if v.ClassName == ("Part") then
- v.Transparency = 1
- if v:FindFirstChild("face") ~= nil then
- v.face:Destroy()
- end
- game.Workspace.Terrain:FillBlock(CFrame.new(v.Position.X, v.Position.Y, v.Position.Z), Vector3.new(v.Size.X * sizem, v.Size.Y * sizem, v.Size.Z * sizem), terrainmaterial)
- end
- if v.ClassName == ("Accessory") then
- v:Destroy()
- end
- end
- end
- if w.ClassName == ("Part") then
- if w.Size.X < 100 and w.Size.Y < 100 and w.Size.Z < 100 then
- game.Workspace.Terrain:FillBlock(CFrame.new(w.Position.X, w.Position.Y, w.Position.Z), Vector3.new(w.Size.X * sizem, w.Size.Y * sizem, w.Size.Z * sizem), terrainmaterial)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement