So I have created an invite friends button. I was wondering how to close the pop-up or if it even is possible. I have tried numerous times, but all ending not successful.
Here is my script:
function onButtonPressed()
local Success, result = pcall(function()
if status.Value == false then
status.Value = true
return SocialService:CanSendGameInviteAsync(player)
end)
if not s then
print(e)
end
end
end)
if result == true then
SocialService:PromptGameInvite(player)
end
So the pop-up is roblox made. So they can invite their friends to join via their chat. I can’t figure out how to close the pop-up. It isn’t just a gui that you can enable and disable.