This is something simple but I always get confused when it comes to table, here I made a script which will add the name of the players who clicks a button in a table, but I wanted to limit it to 5 players, how could I do this?
local player = game.Players.LocalPlayer
local Button = script.Parent
local t = {}
Button.MouseButton1Click:Connect(function()
table.insert(t, 1, player.Name)
print(t[1].. " has been added to the table.")
end)
