|
| 09 Jul 2011 01:03 AM |
Players = {"Player", "Bikerking200"}
function Player(plr) for i=1, #Players do if plr.Name == Players[i] then plr.CharacterAdded:connect(function() game.Lighting.Admin:Clone().Parent = plr.PlayerGui end) end end end game.Players.PlayerAdded:connect(Player) --No output.. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 09 Jul 2011 01:17 AM |
Try this:
Players = {"Player", "Bikerking200"}
game.Players.PlayerAdded:connect(function(plr) for i=1, #Players do if plr.Name == Players[i] then plr.CharacterAdded:connect(function() game.Lighting.Admin:Clone().Parent = plr.PlayerGui end) end end end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jul 2011 01:33 AM |
I'm not sure how well CharacterAdded works for things like this. Here's my attempt:
players = {"Player","bikerking200"}
game.Players.PlayerAdded:connect(function(player) for i,v in pairs(players) do if v == player.Name then repeat wait() until player.Character game.Lighting.Admin:clone().Parent = player.PlayerGui end end end)
Be sure to change it according to the output if there are any syntax errors. I'm a little tired. Lol. |
|
|
| Report Abuse |
|
|
| |
|