Changing teams bug

Hello, so I have a button that allows you to change your team, but if you keep changing it, your character seems to get shorter and shorter, but I want it to just change to the defined sizes in the script on each team and not get smaller and smaller each time you change teams. Here is the code.

print("hi")
local teamSizeIndex = {
	 
	Parents = 1,
	Teens = 0.9,
	Kids = 0.85
}

local function updateSize(player)
	print("HIIIIIIIIIIIIIIIIIII 2")
	wait(0.1)
	-- give a little bit of time for things to load
	if player.Team then 
		local char = player.Character
		local size = teamSizeIndex[player.Team.Name]
		char.Humanoid:MoveTo(char.HumanoidRootPart.Position + Vector3.new(0,3,0))  
		char.Humanoid.BodyHeightScale.Value *= size
		char.Humanoid.BodyWidthScale.Value *= size
		char.Humanoid.BodyDepthScale.Value *= size
		char.Humanoid.HeadScale.Value *= size
	end
end

game.Players.PlayerAdded:Connect(function(player)

	player.CharacterAdded:Connect(function()
		updateSize(player)
	end)

	player:GetPropertyChangedSignal("Team"):Connect(function()
		print(player.Team)
		updateSize(player)
	end)
end)

you never set the team color so it will never change

Just remove the *? You’re multiplying the scales by 1, 0.9 and 0.85 but you’re trying to set it so just using the equals sign should do it?

Okay letme go test that in a few minutes, thanks.

It worked perfectly thanks so much.