Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get(block,func,num)
- local back
- local region = Region3.new(
- (block.Position-(block.Size/2))*4
- (block.Position+(block.Size/2))*4
- )
- local got = workspace:GetPartsInRegionWithWhitelist(region,workspace.Terrain.Model:GetChildren())
- if func == "All" then
- local top,middle,bottom
- else
- local add = 9*func
- back = got[num]+add
- end
- return back
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement