How do I get the player that just joined's name in a local script from FireAllClients()?
Asked by
6 years ago Edited 6 years ago
03 | rs = game:GetService( "ReplicatedStorage" ) |
04 | admins = { "LawlR" , "gungirl60" } |
05 | game.Players.PlayerAdded:Connect( function (plr) |
06 | for _,a in pairs (admins) do |
08 | rs:FindFirstChild( "adminjoined" ):FireAllClients() |
-
03 | text 1 = script.Parent.Parent.t 1 |
04 | text 2 = script.Parent.Parent.t 2 |
05 | text 3 = script.Parent.Parent.t 3 |
06 | text 4 = script.Parent.Parent.t 4 |
07 | text 5 = script.Parent.Parent.t 5 |
08 | text 6 = script.Parent.Parent.t 6 |
09 | text 7 = script.Parent.Parent.t 7 |
10 | rs = game:GetService( "ReplicatedStorage" ) |
14 | script.Parent.Parent.Parent.Enabled = true |
15 | repeat wait (. 02 ) text 1. TextTransparency = text 1. TextTransparency + . 03 until text 1. TextTransparency > = 1 |
16 | repeat wait (. 02 ) text 2. TextTransparency = text 2. TextTransparency + . 03 until text 2. TextTransparency > = 1 |
17 | repeat wait (. 02 ) text 3. TextTransparency = text 3. TextTransparency + . 03 until text 3. TextTransparency > = 1 |
18 | repeat wait (. 02 ) text 4. TextTransparency = text 4. TextTransparency + . 03 until text 4. TextTransparency > = 1 |
19 | repeat wait (. 02 ) text 5. TextTransparency = text 5. TextTransparency + . 03 until text 5. TextTransparency > = 1 |
20 | repeat wait (. 02 ) text 6. TextTransparency = text 6. TextTransparency + . 03 until text 6. TextTransparency > = 1 |
21 | repeat wait (. 02 ) text 7. TextTransparency = text 7. TextTransparency + . 03 until text 7. TextTransparency > = 1 |
22 | repeat wait (. 02 ) text 7. Parent.BackgroundTransparency = text 7. Parent.BackgroundTransparency + . 03 until text 7. Parent.BackgroundTransparency > = 1 |
23 | script.Parent.Parent.Parent.Enabled = false |
24 | text 1. TextTransparency = 0 |
25 | text 2. TextTransparency = 0 |
26 | text 3. TextTransparency = 0 |
27 | text 4. TextTransparency = 0 |
28 | text 5. TextTransparency = 0 |
29 | text 6. TextTransparency = 0 |
30 | text 7. TextTransparency = 0 |
33 | event = rs:WaitForChild( "adminjoined" ) |
34 | event.OnClientEvent:Connect(adminjoined) |
How do I get the player's name that just joined? I would like to change the text to "(player that just joined) had joined" or something along those lines, but I'm not sure how to get the name.