local function D()local D,V=pcall(function()return SocialService:CanSendGameInviteAsync(Player)end)if V==true then SocialService:PromptGameInvite(Player)end end icon.selected:Connect(function()D()end)


local function onButtonPressed()
	local success, result = pcall(
		function()
			return SocialService:CanSendGameInviteAsync(Player)
		end
	)

	if result == true then
		SocialService:PromptGameInvite(Player)
	end
end

icon.selected:Connect(function()
	onButtonPressed()
end)
