Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isOnPoint=function(pos,point,dist)
- x,y=point.Size.x/2,point.Size.y/2
- pox,poy=point.Position.x,point.Position.y
- px,py=pos.x,pos.y
- if x + pox - px >= x and x + pox + px <= x then
- if y + poy - py >= y and y + poy + py <= y then
- return true
- end
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment