I have an invite button in my game using topbar plus and when you click it the invite menu opens… except when you click X on the invite menu it doesnt deselect the invite button. So the only thing i really need is a way to automatically deselect the invite button through the script. here’s my code:
local invite = Icon.new() :setImage(10885655986) :setLabel("Invite") :bindEvent("selected", function() local menu = Instance.new("ExperienceInviteOptions") thing.PromptMessage = "Invite your friends to play!" thing.InviteMessageId = "0936926f-4b44-2d4e-bbbb-f141aefb981f" social:PromptGameInvite(game.Players.LocalPlayer, menu) end) social.GameInvitePromptClosed:Connect(function() WHAT DO I PUT HERE? end)