Can't seem to scale the player on join

I’m trying to make the player bigger, when the player spawns in they’re a bit too small for what I’m going for. I need to change the players scaling, but when I do nothing happens.

local Character = game.Players.LocalPlayer.Character

local Humanoid = Character:WaitForChild("Humanoid")

Humanoid:WaitForChild("BodyDepthScale").Value *= 2

Humanoid:WaitForChild("BodyHeightScale").Value *= 2

Humanoid:WaitForChild("BodyWidthScale").Value *= 2

Humanoid:WaitForChild("HeadScale").Value *= 2

Humanoid:WaitForChild("BodyProportionScale").Value *= 2

This is the code I used, I’m very new to coding and never used this before so I most likely did something wrong. Any help would be much appreciated. I’m trying to change the size of the character when they spawn into the game.

Try checking this out

you cant get the player’s character quickly

you need to wait it

you can call the CharacterAdded function used on the player to detect when its character is added
(The function name say it obviously Xd)

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAppearanceLoaded:Connect(function(Character)
		task.wait()
		local Humanoid = Character:WaitForChild("Humanoid")
		local Description = Humanoid:WaitForChild("HumanoidDescription")
		Description.DepthScale *= 2
		Description.HeightScale *= 2
		Description.WidthScale *= 2
		Description.HeadScale *= 2
		Description.ProportionScale *= 2
		Humanoid:ApplyDescription(Description)
	end)
end)

This worked for me in a server script.

Alternative solution.

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAppearanceLoaded:Connect(function(Character)
		local Humanoid = Character:WaitForChild("Humanoid")
		for _, Scale in ipairs(Humanoid:GetChildren()) do
			if Scale:IsA("NumberValue") then
				Scale.Value *= 2
			end
		end
	end)
end)
1 Like

You could insert a build rig into StarterPlayer, rename it to StarterCharacter, and scale it however you like.

Thank you! I realized what my issue was! I was using a localscript instead of a server script. Thank you all for helping me! :slight_smile: