generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Any idea why this doesn't work?

Previous Thread :: Next Thread 
CrushingPower is not online. CrushingPower
Joined: 23 Oct 2013
Total Posts: 2497
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
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
28 Feb 2014 08:15 AM
Isn't it suppost to be

for _,c in pairs(modelasdf:GetChildren()) do
Report Abuse
YumERAGON is not online. 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
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
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 is not online. iYoshiFox
Joined: 14 Apr 2012
Total Posts: 1058
28 Feb 2014 08:38 AM
GetChildren returns a table.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image