Hey! I am having some issues here, so I am trying to make a quick report system where they select the user then they can pick the reason but every time I close it moves the options next to the icon?
example: https://gyazo.com/70463969cacf075324479adedd1ec04f
Here is most of my code, if you want the rest let me know ty in advance.
function createDropdownOption(mainIcon, playerList)
for i, v in pairs(playerList) do
mainIcon:setDropdown({
Icon.new()
:setLabel(tostring(v))
})
end
end
-- Actual code --
reportIcon = Icon.new()
reportIcon:setImage(6326373239)
reportIcon:setTip("Report an user")
reportIcon:setCornerRadius(0, 8)
reportIcon:set("dropdownSquareCorners", true)
reportIcon.toggled:Connect(function(isSelected)
if isSelected == true then
local playerList = updatePlayerList()
print(#playerList)
createDropdownOption(reportIcon, playerList)
--updateDropdownOption(playerList, reportIcon)
else
reportIcon:setDropdown()
print("Drop down 'deleted'")
end
end)