I want to make it so I can insert the username of someone and it will show a preview of the persons Roblox avatar. Here is my code
function preview(id)
local appearanceModel = game.Players:GetCharacterAppearanceAsync(id)
script.Parent.ViewportFrame.PlayerPreview:Destroy()
appearanceModel.Parent = script.Parent.ViewportFrame
end
script.Parent.PreviewButton.MouseButton1Click:Connect(function()
preview(script.Parent.UsernameSlot.Text)
end)
I keep getting the error, "Unable to cast string to int64". I also want to make it appear in a certain area
