Locally made NPC scaling not working

  1. What do you want to achieve? I want to be able to scale a locally made NPC using a LocalScript.

  2. What is the issue? The NPC doesn’t seem to change size unless it’s in a server script which defeats the point as it’s a character customisation screen using an NPC.

  3. What solutions have you tried so far? I’ve looked at several posts regarding npc scaling but none of them seem to be related to a local NPC.

Below is an example of a script I’m currently using:

local humanoid = game.Workspace.ModelOfPlayer:FindFirstChild("Humanoid")

local bodyHeightScale = humanoid.BodyHeightScale
bodyHeightScale.Value = height.Height

local bodyWidthScale = humanoid.BodyWidthScale
local bodyDepthScale = humanoid.BodyDepthScale
local bodyHeadScale = humanoid.HeadScale

bodyWidthScale.Value = weight.Width
bodyDepthScale.Value = weight.Depth
bodyHeadScale.Value = weight.Head

The ModelOfPlayer is made using a localscript and the script above is also in a localscript.

Try using a humanoid description.
HumanoidDescription | Roblox Creator Documentation

Would that change the size of the NPC if the player scale changes in game?

You want the NPC to look exactly like the player?

Yeah, it’s like a character customisation screen using an NPC, it already changes clothes etc but there’s also Height/Weight settings. A serverscript changes the scale of the player while I want a localscript to change the scale of the NPC in real time when the height button is pressed.

Hello, Still trying to find a way to fix this.