Just trying to add the name of a player to a table each time they click a button,
but for some reason it refuses to work.
The “print(“hello”)” works just fine, so I’m just really confused what’s going on.
script:
local Table = {}
script.Parent.MouseButton1Click:Connect(function()
local plr = game:GetService("Players").LocalPlayer
table.insert(Table, plr.Name)
print(Table)
print("hello")
end)
to print all of the array’s values at once as well, which is more in-line with how many other programming languages work while printing arrays, rather than printing the memory address of the array. (thx Forummer)