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 » Scripters
Home Search
 

Re: help me

Previous Thread :: Next Thread 
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
12 Dec 2016 11:49 AM
how to make local main = script.Parent:WaitForChild('theDisplay').Frame.Backing. refresh everytime something is added inside it, or removed. like buttons
Report Abuse
pidgey is not online. pidgey
Joined: 16 Jan 2008
Total Posts: 2739
12 Dec 2016 11:54 AM
http://wiki.roblox.com/index.php?title=API:Class/Instance/ChildAdded
http://wiki.roblox.com/index.php?title=API:Class/Instance/ChildRemoved
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
12 Dec 2016 11:59 AM
yeah but

workspace.ChildAdded:connect(function(instance)
local main = script.Parent:WaitForChild('theDisplay').Frame.Backing

end)


for i,v in next, main:GetChildren() do -- says unknown global main
v.MouseButton1Down:connect(function()
SelectGui(v)
end)
Report Abuse
darkjediwarriorX is online. darkjediwarriorX
Joined: 26 Aug 2015
Total Posts: 879
12 Dec 2016 12:05 PM
You got a lot of problems, here's the finished result

workspace.ChildAdded:connect(function(instance)
local main = script.Parent:WaitForChild('theDisplay').Frame.Backing

for i,v in next, main:GetChildren() do -- says unknown global main
v.MouseButton1Down:connect(function()
SelectGui(v)
end)
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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