Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SocialService = game:GetService("SocialService")
- local Players = game:GetService("Players")
- local Lighting = game:GetService("Lighting")
- local DevProductsGui = script.Parent.Parent.DevProducts
- local LeftGui = script.Parent.Parent.Left
- local IslandsGui = script.Parent.Parent.Islands
- local RebirthsGui = script.Parent.Parent.Rebirths
- script.Parent.Parent.Left.Frame.Invites.MouseButton1Click:Connect(function()
- SocialService:PromptGameInvite(Players.LocalPlayer)
- Lighting.Blur.Enabled = true
- DevProductsGui.Enabled = false
- LeftGui.Enabled = false
- IslandsGui.Enabled = false
- RebirthsGui.Enabled = false
- SocialService.GameInvitePromptClosed:Connect(function()
- Lighting.Blur.Enabled = false
- DevProductsGui.Enabled = true
- LeftGui.Enabled = true
- IslandsGui.Enabled = true
- RebirthsGui.Enabled = true
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement