ClickDetector do not work with different Char

The click detector is not working properly when I use this different body, if the player spawns within the maximum distance limit, the ClickDetector will work, but if they spawn outside the limit, it does not work. In summary, the ClickDetector is not updating the distance between the player’s body and the part.

MaxDistance: 5


Debug
image
The Different Char

1 Like

First, make sure your custom rig is set up correctly. The ClickDetector checks distance from the HumanoidRootPart, so if that’s not properly positioned or isn’t the actual root, it can cause issues. If everything seems fine and it’s still not working, try creating an invisible part, weld it to the character, set its CanCollide to false, and move the ClickDetector onto that part. That usually helps when the rig setup is a bit non-standard.

2 Likes

I basically set the PrimaryPart of the Char to the HumanoidRootPart and it worked.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.