local pfr = script.Parent.pframeholder
local p1 = pfr.p1.p1image.Image
local p2 = pfr.p2.p2image.Image
local p3 = pfr.p3.p3image.Image
local p4 = pfr.p4.p4image.Image

local plrs = {}

game.Players.ChildAdded:connect(function(p)
	table.insert(plrs,p.Name)
	print(plrs[1])
end)

game.Players.PlayerRemoving:connect(function(pl)
	table.remove(plrs,pl.Name)
end)

I don't know why it won't work.

3 comments

1

What does it say In the Output?

1

First check your output to see if your getting any errors. Because I got rid of the variables at the beginning of the script and it worked fine.

1

What part is not working? Is there any Output? If so, what does the error say? These questions are important so we can better understand to help you with your Question.