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

[FE] Local script player list not working?

Asked by
PolyyDev 214 Moderation Voter
6 years ago

I have a FE game and when a player joins it adds a gui to a frame with UIListLayout. But when the function is called it does nothing.

Code:

game.Players.PlayerAdded:Connect(function(plr)
    print(" has entered")
    local temp = script.Parent.Parent.Parent.Templates.PlayerTemp:Clone()
        temp.Name = plr.Name
        temp.Text = plr.Name
        temp.Parent = script.Parent

end)

Local Script inside a frame

1 answer

Log in to vote
0
Answered by
welt101 12
6 years ago

It should be a ServerScript not a LocalScript.

0
It doesnt matter now I changed it to clicking on a player to bring up a gui PolyyDev 214 — 6y
Ad

Answer this question