Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to write: When "Right Leg" touches "Part"?

I've tried :GetTouchingParts() but this won't work because Right Leg is non collidable.

I've also tried .Touched:connect() but this makes my script messy.

These are the only two methods I know of. Are there any alternative methods that may be useful?

1 answer

✓ Accepted answer

:GetTouchingParts only works if Touched event is connected.

:GetTouchingParts will work if you write this before:

part.Touched:Connect(function() end)

Touched event does not fire if the part connected was already touching the part during connection time.

How is your script getting messy with touched?

This discussion is preserved as it was. New answers, comments, and votes are closed.