How do I change Character Appearance Id

I want to change my characters appearance id then make it change my current avatar.
I can change my players character appearance id, but it doesn’t actually update my avatar which is what I want. I’ve already looked for solutions but couldn’t seem to find any. Any help?

local button = script.Parent
local player = game.Players.LocalPlayer

button.MouseButton1Down:Connect(function()
	player.CharacterAppearanceId = 544484548
	player:LoadCharacterAppearance()
end)

You are doing this in a local script. You should be using a RemoteEvent to fire the new ID to the server, then apply the ID and load the appearance on there.