HipHeight not setting through LocalScript or ServerScript

I’m making a game where the character increases in size and the HipHeight gets messed up when I scale the BodyHeight/BodyWidth/BodyDepth/HeadScale values up for some reason, it didn’t do this when I was making previous games where I was scaling up the character.

Now when I try to set the hip height when the size of the character changes, sometimes it sets the hip height and sometimes it doesn’t. I’m not what I’m doing wrong, I’ve tried both local script and server script.

Any suggestions are appreciated.

1 Like

Can you show the part of your script which changes HipHeight? Really hard to know what even is the problem if I don’t see the script.

local function UpdateSize()
if Humanoid then
Humanoid.HipHeight = 0.292 * CustomSize.Value
end
end

What is customsize.value? Thisis30chars

usually a value greater than 0.4, its a number

Are you sure that Humanoid exists…? And that it is also the humanoid for your character?

Yes, when I set the HipHeight manually by clicking on the humanoid and typing in the number, then it works. Through scripting it sometimes works, sometimes doesnt