Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My LocalScript won't print p.Name? Help?

Asked by 10 years ago
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.

1
What does it say In the Output? minikitkat 687 — 10y
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. TurboFusion 1821 — 10y
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. TheeDeathCaster 2368 — 10y

Answer this question