Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make invite reward or something?? Or friend joined game :D

Asked by 3 years ago

I tryed find tutorials on yt and nothing And idk how to make it. Thx

1 answer

Log in to vote
0
Answered by 3 years ago
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
    Players.PlayerAdded:Connect(function(Player2) 
        if Player:IsFriendsWith(Player2.UserId) then
            -- Put the reward yourself
        end
    end)
end)
Ad

Answer this question