Change Avatar Script Roblox -
-- Function to change a player's avatar assets local function changeAvatar(player, avatarId) -- avatarId should be the numeric ID of a Roblox asset (e.g. 1234567890) -- This changes the character appearance when they respawn
-- Create new HumanoidDescription from the target asset ID local newDescription = Instance.new("HumanoidDescription") newDescription.PlayerAvatarType = Enum.PlayerAvatarType.R6 -- or R15 newDescription.Id = avatarId change avatar script roblox
local player = game.Players.LocalPlayer task.wait(1) -- Wait for character to load -- Function to change a player's avatar assets
local remote = game:GetService("ReplicatedStorage").RemoteEvents.ChangeAvatar -- Example: when a button is pressed script.Parent.MouseButton1Click:Connect(function() remote:FireServer(1234567890) -- replace with your asset ID end) change avatar script roblox
local description = Instance.new("HumanoidDescription") description.Id = avatarId description.PlayerAvatarType = Enum.PlayerAvatarType.R15