Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Yes actually, using model:GetExtentsSize()
  2.  
  3. local modelSize = model:GetExtentsSize()
  4. local primePos = model.PrimaryPart.Position
  5.  
  6. rightTopFront,leftBottomBack = primePos+Vector3.new(modelSize.X/2,modelSize.Y/2,modelSize.Z/2),primePos-Vector3.new(modelSize.X/2,modelSize.Y/2,modelSize.Z/2)
  7.  
  8. local region = Region3.new(righttopFront,leftBottomBack)
  9. -- now you have your region
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement