Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

1 answer

✓ Accepted answer
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)

This discussion is preserved as it was. New answers, comments, and votes are closed.