#How can i make a button leads me to join a Group

1 messages · Page 1 of 1 (latest)

loud bone
#

i've seen in many games that they have that button so when u click on it you can join their group without leaving the game . how do they do that ?

wispy haven
#

StarterGui-ScreenGui-Frame-Button-LocalScript

#

attach this code

#

local SocialService = game:GetService("SocialService")

local groupId = 1234567

script.Parent.MouseButton1Click:Connect(function()
SocialService:PromptGroupJoin(game.Players.LocalPlayer, groupId)
end)

#

replace line

#

local groupId = 1234567

#

with ur real group id

#

this but in ur group