Hello, I need to know how to detect if a part touch another part.
The script must be a “if then” contidion, not an event.
Honestly, you’re gonna be hard-pressed to find a practical way to accomplish this without it being an event.
There’s Region3, GetTouchingParts, and other functions but in the long run it’s just wasteful and impractical. Do you mind telling us why it can’t be an event?
Just like what @Clueless_Brick I’m not sure why you don’t want events even though it’s way easier and more reliable. Is this some sort of challenge. I recommend using events if you are developing. For example this is a "wait for an event " script:
local myPart = game.Workspace.Part
-- Wait until another part collides with "myPart"
local otherPart = myPart.Touched:Wait()
print("Part was touched by: " .. otherPart.Name)
If you want to learn more about events feel free to us the link below!
Handling Events (roblox.com)
3 Likes