Topbar plus help with invite button

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) 
1 Like

Nevermind, I got it! Turns out its pretty simple, you just need to write invite:deselect()

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.