Advertisement
dahpiglz

Player Terrainold

Nov 21st, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local mouse = player:GetMouse()
  4.  
  5. game.Workspace.Terrain.WaterTransparency = 0.5
  6. game.Workspace.Terrain.WaterReflectance = 1
  7.  
  8. while true do
  9. wait(0.01)
  10. game.Workspace.Terrain:Clear()
  11. for i,w in pairs(game.Workspace:getChildren()) do
  12. if w.ClassName == ("Model") then
  13. for i,v in pairs(w:GetChildren()) do
  14. if v.ClassName == ("Part") then
  15. v.Transparency = 1
  16. if v:FindFirstChild("face") ~= nil then
  17. v.face:Destroy()
  18. end
  19. game.Workspace.Terrain:FillBlock(CFrame.new(v.Position.X, v.Position.Y, v.Position.Z), Vector3.new(v.Size.X * 3, v.Size.Y * 3, v.Size.Z * 3), ("Water"))
  20. end
  21. if v.ClassName == ("Accessory") then
  22. v:Destroy()
  23. end
  24. end
  25. end
  26. if w.ClassName == ("Part") then
  27. if w.Size.X < 100 and w.Size.Y < 100 and w.Size.Z < 100 then
  28. game.Workspace.Terrain:FillBlock(CFrame.new(w.Position.X, w.Position.Y, w.Position.Z), Vector3.new(w.Size.X * 1, w.Size.Y * 1, w.Size.Z * 1), ("Slate"))
  29. end
  30. end
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement