Scaling character issue

why does this happen?

local function scaleCharacter(character, scaleFactor)
	character:ScaleTo(scaleFactor)
end

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function()
		char = plr.Character
		task.wait(10)
		scaleCharacter(char, 2) -- scale by 1.5x
	end)
end)

I tried your script, and it seems to be working for both R15 and R6. Are you sure there are no other scripts that are conflicting with your character?

theres no other script that are conflicting with this one, could animations cause this?

I am testing the code and everything seems to be working correctly. There may be a script that is conflicting with the scaling. Your game appears to be a fighting game, so it is possible that the legs are controlled by a script.

Instead of using Model:ScaleTo, try using the avatar scaling properties on HumanoidDescriptions

This helps Roblox update character physics according to the desired proportions.

1 Like
local function scaleCharacter(Humanoid,SizeValue)
	if not Humanoid or not SizeValue then return end
	
	local HS = Humanoid.HeadScale
	local BDS = Humanoid.BodyDepthScale
	local BWS = Humanoid.BodyWidthScale
	local BHS = Humanoid.BodyHeightScale
	
	
	HS.Value = SizeValue 
	BDS.Value = SizeValue
	BWS.Value = SizeValue
	BHS.Value = SizeValue
end

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		task.wait(10)
		scaleCharacter(char.Humanoid, 2) -- scale by 1.5x
	end)
end)

hey sorry for the late reply now im getting an error
05:56:09.928 HeadScale is not a valid member of Humanoid “Workspace.AliveFolder.InactiveVan2.Humanoid” - Server - Scale:4

could this be due to the new update to avaters roblox pushed?