#Character scaling causing body parts to overlap - need help fixing Motor6D joints

1 messages · Page 1 of 1 (latest)

mortal kelp
#

I'm making a noob clicker game where noobs spawn in different sizes. I'm having two main issues:

  1. Body parts overlapping when scaled: When I spawn big noobs (3x+ scale), their body parts clip into each other. The head, arms, and legs all bunch up in the torso area instead of staying properly connected.

  2. Clicking works from infinite distance: Players can click noobs from across the entire map instead of only when they're close.

Current scaling code:

for _, part in pairs(character:GetChildren()) do
    if part:IsA("BasePart") then
        part.Size = part.Size * scaleFactor
    end
end

I think the issue is that scaling parts directly doesn't adjust the Motor6D joint positions, so the connections between body parts get messed up. I've tried using Humanoid.DepthScale/HeightScale/WidthScale but that breaks my custom health system.
For the clicking issue, I need to add distance checking to my mouse click detection but I'm not sure how to properly calculate player-to-noob distance.
Any ideas on how to:

Scale R6/R15 characters properly without breaking joints?
Add distance limits to mouse clicking?

Thanks!

quaint forge
gilded umbra
gilded umbra
#

Theres this thing in a clickdetector

#

try setting it