zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
|
| 26 Jan 2014 07:32 PM |
How would I make it so, when a player leaves, their name goes off the player list?
repeat wait() until script.Parent.Parent.Parent
while wait(1) do local Player = script.Parent.Parent.Parent local Opened = Player.PlayerGui.Playerlist.Opened local x = Player.PlayerGui.Playerlist.Background
Template = game.Lighting.Template:clone() Players = game.Players:GetChildren() num = 0 playas = 0 for i = 1, #Players do if playas < 12 then playas = playas +1 T2 = Template:clone() T2.Parent = x T2.Position = UDim2.new(0, 0, num, 0) T2.Name = "Removeable" T2.Text = Players[i].Name num = num +0.1 end end
end
|
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 26 Jan 2014 07:34 PM |
| It does automagicly.. Unless you have a custom one. |
|
|
| Report Abuse |
|
|
shawnyg
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 1428 |
|
|
| 26 Jan 2014 07:43 PM |
http://wiki.roblox.com/index.php/PlayerRemoving_(Event)
~Hope I helped, if you need a script, PM me. ~Glory to CAT!~ ~CAT General Shawnyg~ |
|
|
| Report Abuse |
|
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
| |
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 27 Jan 2014 11:39 AM |
while wait(1) do
That is crappy. Use the function GIVEN TO YOU..
And unless this is a custom playerlist you dont need to.. |
|
|
| Report Abuse |
|
|