Change Avatar Script Roblox Direct

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)

local userId = player.UserId

print(player.Name .. " avatar changed to asset ID: " .. avatarId) end change avatar script roblox

local Players = game:GetService("Players") game:GetService("ReplicatedStorage").RemoteEvents.ChangeAvatar.OnServerEvent:Connect(function(player, assetId) local description = Instance.new("HumanoidDescription") description.Id = tonumber(assetId) player:LoadCharacterWithHumanoidDescription(description) end) local remote = game:GetService("ReplicatedStorage")