I'm making a noob clicker game where noobs spawn in different sizes. I'm having two main issues:
-
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.
-
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!