I'm currently working on a scrip that fires a client when a player dies and sends the name of the player who died and sends the player's killer but for some reason, I'm unable to put the player's name into a text label, and I know it's not an issue from the server I've tested the server 3 times with prints so I'm suspecting from the print testing and the error I get that it's from the client
Players.Player2.PlayerGui.MenuHandler.KillStats:60: invalid argument #3 (string expected, got nil)
ReplicatedStorage:FindFirstChild("Events").KillStatsUI1.OnClientEvent:Connect(function(Player, Playername)
local KillStatsClone1 = KillPopUp:Clone() ---everything except the 5 line works.
KillStatsClone1.Parent = script.Parent.MainGui
KillStatsClone1.Total.Text = "50"
KillStatsClone1.PlayerName.Text = Playername
end)

1 comment
Are you firing the player or player.Name?