Advertisement
dahpiglz

playerterrain nl

Nov 23rd, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local sizem = 3
  2.  
  3. local terrainmaterial = ("Slate")
  4.  
  5. while true do
  6. wait(0.01)
  7. game.Workspace.Terrain:Clear()
  8. for i,w in pairs(game.Workspace:getChildren()) do
  9. if w.ClassName == ("Model") then
  10. for i,v in pairs(w:GetChildren()) do
  11. if v.ClassName == ("Part") then
  12. v.Transparency = 1
  13. if v:FindFirstChild("face") ~= nil then
  14. v.face:Destroy()
  15. end
  16. 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)
  17. end
  18. if v.ClassName == ("Accessory") then
  19. v:Destroy()
  20. end
  21. end
  22. end
  23. if w.ClassName == ("Part") then
  24. if w.Size.X < 100 and w.Size.Y < 100 and w.Size.Z < 100 then
  25. 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)
  26. end
  27. end
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement