Advertisement
Cakey3101

InviteFriendsHandler - ClientScript!

Apr 18th, 2024
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | Source Code | 0 0
  1. local SocialService = game:GetService("SocialService")
  2. local Players = game:GetService("Players")
  3. local Lighting = game:GetService("Lighting")
  4.  
  5. local DevProductsGui = script.Parent.Parent.DevProducts
  6. local LeftGui = script.Parent.Parent.Left
  7. local IslandsGui = script.Parent.Parent.Islands
  8. local RebirthsGui = script.Parent.Parent.Rebirths
  9.  
  10. script.Parent.Parent.Left.Frame.Invites.MouseButton1Click:Connect(function()
  11.     SocialService:PromptGameInvite(Players.LocalPlayer)
  12.     Lighting.Blur.Enabled = true
  13.     DevProductsGui.Enabled = false
  14.     LeftGui.Enabled = false
  15.     IslandsGui.Enabled = false
  16.     RebirthsGui.Enabled = false
  17.    
  18.     SocialService.GameInvitePromptClosed:Connect(function()
  19.         Lighting.Blur.Enabled = false
  20.         DevProductsGui.Enabled = true
  21.         LeftGui.Enabled = true
  22.         IslandsGui.Enabled = true
  23.         RebirthsGui.Enabled = true
  24.     end)
  25. end)
Tags: lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement