So, i am making a game where you buy avatars from different games, but whenever i make a save button for my outfit and i save my avatar or a different avatar from the game i get this error
18:04:46.053 Maximum event re-entrancy depth exceeded for Object.AbsoluteSizeChanged when calling anonymous function on line 110 in CorePackages.Packages._Index.ReactRoblox.ReactRoblox.client.roblox.SingleEventManager - Studio
I dont know if its my script or just the CoreGui itself, here is my script
local AvatarEditorService = game:GetService("AvatarEditorService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local SaveOutfitUI = PlayerGui:WaitForChild("SaveOutfit")
local Trigger = SaveOutfitUI:WaitForChild("SaveOptions"):WaitForChild("Outfit"):WaitForChild("Save")
Trigger.Activated:Connect(function()
task.defer(function()
SaveOutfitUI.Enabled = false
local character = Player.Character or Player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local currentDescription = humanoid:GetAppliedDescription()
AvatarEditorService:PromptSaveAvatar(currentDescription, humanoid.RigType)
local result = AvatarEditorService.PromptSaveAvatarCompleted:Wait()
SaveOutfitUI.Enabled = true
if result == Enum.AvatarPromptResult.Success then
return
end
end)
end)