#How can i make a button leads me to join a Group
1 messages · Page 1 of 1 (latest)
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