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 avatarId = 1234567890 -- Replace with your desired asset ID
-- Optional: Immediately respawn player to see changes if player.Character then player.Character:BreakJoints() -- Kills current character to force respawn end change avatar script roblox
local description = Instance.new("HumanoidDescription") description.Id = avatarId description.PlayerAvatarType = Enum.PlayerAvatarType.R15
local player = game.Players.LocalPlayer task.wait(1) -- Wait for character to load change avatar script roblox
local userId = player.UserId
-- Example usage (e.g., remote event or admin command) -- changeAvatar(player, 1234567890) If you just want to change your own avatar in-game temporarily , use this LocalScript in StarterPlayerScripts : change avatar script roblox
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)