FragRage21

smoothen

Sep 15th, 2020
816
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function get(block,func,num)
  2. local back
  3. local region = Region3.new(
  4. (block.Position-(block.Size/2))*4
  5. (block.Position+(block.Size/2))*4
  6. )
  7. local got = workspace:GetPartsInRegionWithWhitelist(region,workspace.Terrain.Model:GetChildren())
  8. if func == "All" then
  9. local top,middle,bottom
  10. else
  11. local add = 9*func
  12. back = got[num]+add
  13. end
  14. return back
  15. end
RAW Paste Data