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 avatarId = 1234567890 -- Replace with your desired asset ID change avatar script roblox
local player = game.Players.LocalPlayer task.wait(1) -- Wait for character to load local remote = game:GetService("ReplicatedStorage")
local userId = player.UserId