Joined
·
5 Posts
Hello, my code will not put the gui in the players playergui, here is the code:
[CODE lang="lua" title="Code.lua"]local allowed = {"1085116466", "605058870", "1555287386", "1610051124", "1658830587", "666294989", "1654885900", "1186477111", "1481459200", "1903039800", "146830329"} --Add your name
game.Workspace.ChildAdded:Connect(function(player)
for i, v in pairs (allowed) do
if player.Name == game.Players:GetNameFromUserIdAsync(v) then
script.ScreenGui:Clone().Parent = player.PlayerGui
end
end
end)[/CODE]
Help would be appreciated!
[CODE lang="lua" title="Code.lua"]local allowed = {"1085116466", "605058870", "1555287386", "1610051124", "1658830587", "666294989", "1654885900", "1186477111", "1481459200", "1903039800", "146830329"} --Add your name
game.Workspace.ChildAdded:Connect(function(player)
for i, v in pairs (allowed) do
if player.Name == game.Players:GetNameFromUserIdAsync(v) then
script.ScreenGui:Clone().Parent = player.PlayerGui
end
end
end)[/CODE]
Help would be appreciated!