Answered by
7 years ago Edited 7 years ago
I would add a Player Added event
01 | game.Players.PlayerAdded:Connect( function (hit) |
02 | local player = game.Players:GetPlayerFromCharacter(hit.Parent) |
03 | local screen = game.StarterGui.FriendScreen |
04 | for amount, plr in pairs (game.Players:GetPlayer()) do |
05 | if plr:IsFriendsWith(player.Name) then |
07 | local friendtxt = Instance.new( "TextLabel" , screen) |
09 | friendtxt.Text = player.Name.. " your friend has joined the server" |
Hopefully this helped you,tell me if you find any errors :)