|
| 23 Aug 2016 11:43 PM |
How would I do this -
if part is touching other part then print(other part.Name) end
I basically want to detect if a part is touching another part, and if it is, print that parts name. Also, I'd like it to be an if statement.
|
|
|
| Report Abuse |
|
|
| 23 Aug 2016 11:44 PM |
function IsTouching(new) for _,v in pairs(script.Parent:GetTouchingParts()) do if v == new then return true end end return false end |
|
|
| Report Abuse |
|