Resizing / Rescaling NPCs?

So uh… you can increase a Player’s size using something like this:

local HS = Humanoid.HeadScale
local BDS = Humanoid.BodyDepthScale
local BWS = Humanoid.BodyWidthScale
local BHS = Humanoid.BodyHeightScale

HS.Value = HS.Value * 2
BDS.Value = BDS.Value * 2
BWS.Value = BWS.Value * 2
BHS.Value = BHS.Value * 2

(just copied someone's code)

Back in 2018 I tried something alike for NPCs, as it’d be cool if an enemy unit could increase in size through script like this.
Now in 2023, is this still impossible or are you now able to also increase an NPC’s size?

3 Likes

Increasing an NPC’s size through script is possible in Roblox. You can use the same approach you mentioned for players, but apply it to the NPC’s humanoid instead.

local npc = game.Workspace.NPC -- Replace this with your NPC object
local humanoid = npc.Humanoid

local headScale = humanoid.HeadScale
local bodyDepthScale = humanoid.BodyDepthScale
local bodyWidthScale = humanoid.BodyWidthScale
local bodyHeightScale = humanoid.BodyHeightScale

headScale.Value = headScale.Value * 2
bodyDepthScale.Value = bodyDepthScale.Value * 2
bodyWidthScale.Value = bodyWidthScale.Value * 2
bodyHeightScale.Value = bodyHeightScale.Value * 2

The error:

HeadScale is not a valid member of Humanoid "Workspace.DummyA.Humanoid"