Player.CharacterAppearanceId isn't working

Hi, I am trying to make the player’s character turn into the character of the Id that the player inputs, but whenever they get respawned, they keep their character the same. Here is the code:

--Local Script
local textbox = script.Parent
local player = game.Players.LocalPlayer
textbox.FocusLost:Connect(function()
	local id = tonumber(textbox.Text)
	player.CharacterAppearanceId = id
	game.Workspace.RemoteEvent:FireServer()
end)
--Server Script
local re = script.Parent
re.OnServerEvent:Connect(function(player)
	player:LoadCharacter()
end)

Thank you!

Try setting the CharacterAppearanceId on the server since the server loads the character.

It works, thank you!
!!!