|
| 28 Feb 2014 05:25 AM |
so ModesFrame = {"Free For All","Team Deathmatch"}
lab is either Free For All, or Team Deathmatch, depending on whichever is clicked. However this only works when Team Deathmatch is clicked, and not Free For All.
lab.MouseButton1Click:connect(function() print(lab.Name) for i,c in pairs(ModesFrame:GetChildren()) do print(c.Name) if c.Name ~= "Confirm" and c.Name ~= lab.Name then lab.BackgroundTransparency = 0.85 lab.TextStrokeColor3 = Color3.new(0,0,0) elseif c.Name == lab.Name then lab.BackgroundTransparency = 0.5 lab.TextStrokeColor3 = Color3.new(1,1,1) table.remove(Labs,1) table.insert(Labs,lab.Name) end end end) |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2014 08:15 AM |
Isn't it suppost to be
for _,c in pairs(modelasdf:GetChildren()) do |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
|
| 28 Feb 2014 08:19 AM |
no it can be
your, mom in pairs for all he cares |
|
|
| Report Abuse |
|
|
|
| 28 Feb 2014 08:37 AM |
| Why are you getting the children of a table? Lua will expect an object with :GetChildren() but you gave it a table... |
|
|
| Report Abuse |
|
|
iYoshiFox
|
  |
| Joined: 14 Apr 2012 |
| Total Posts: 1058 |
|
|
| 28 Feb 2014 08:38 AM |
| GetChildren returns a table. |
|
|
| Report Abuse |
|
|