I'm making a winner shower that shows who won the round, I made a table to index all the players easily, I'm trying to send the remote event to the first person in the table to show their name and profile picture, But the code I tried won't work, Can anyone help me?
Here's the code I tried
if #plrs == 1 then
-- The player has won
Status.Value = "And our winner is...... "..plrs[1].Name
game.Workspace.InGameMusic:Stop()
replicatedStorage:WaitForChild("ShowWinnerGui"):FireClient(plrs,1)
wait(5)
break
elseif #plrs == 0 then
Status.Value = "No one won :("
game.Workspace.InGameMusic:Stop()
wait(2)
break
elseif i == 0 then
Status.Value = "Times Up!"
game.Workspace.InGameMusic:Stop()
wait(2)
break
end
