Is there any way to detect a part is colliding with another object? Do I keep checking the part's CFrame or there's any better ways? Thanks.
COMMUNITY QUESTION
How do I detect a part is colliding with another object?
1 answer
GetTouchingParts
This is a function of a BasePart that returns a table of the part(s) it is touching:
https://developer.roblox.com/api-reference/function/BasePart/GetTouchingParts
Touched and TouchEnded
You could also use the Touched and TouchEnded to decide by storing and removing parts from a table:
https://developer.roblox.com/api-reference/event/BasePart/Touched https://developer.roblox.com/api-reference/event/BasePart/TouchEnded
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
yes there is a way, and there is a better way, you are welcome! Glad to help! :D
The way to detect if a part is colliding with another object is this: part.OnTouched:Connect(function() --What action you would like to perform goes here-- end)