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: Brick Counter GUI Glitch #2!

Previous Thread :: Next Thread 
RobloxWarrior89 is not online. RobloxWarrior89
Joined: 29 Mar 2012
Total Posts: 2388
01 Jan 2014 10:58 PM
Code:
while true do
Workspace.ChildAdded:connect(function()
for _,v in pairs(Workspace:GetChildren()) do
script.Parent.Text = "Bricks : "..#v -- cleaner
end
end)
wait(0.25)
end

Output:
22:57:29.824 - Players.Player1.PlayerGui.ScreenGui.Frame.TextLabel.Script:4: attempt to get length of local 'v' (a userdata value)
Report Abuse
Wakarimasu is not online. Wakarimasu
Joined: 12 Nov 2013
Total Posts: 1448
01 Jan 2014 10:59 PM
Dont post multiple times.
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
01 Jan 2014 10:59 PM
Workspace.ChildAdded:connect(function()
for _,v in pairs(Workspace:GetChildren()) do
script.Parent.Text = "Bricks : "..tonumber(#v) -- cleaner
end
end)
Report Abuse
RobloxWarrior89 is not online. RobloxWarrior89
Joined: 29 Mar 2012
Total Posts: 2388
01 Jan 2014 10:59 PM
@Above,
No! It wasn't a multi-post, it's another glitch.
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
01 Jan 2014 11:00 PM
while true do
Workspace.ChildAdded:connect(function()
workchil = Workspace:GetChildren()
for _,v in pairs(Workspace:GetChildren()) do
script.Parent.Text = "Bricks : "..#workchil -- cleaner
end
end)
wait(0.25)
end

Try that?
Report Abuse
RobloxWarrior89 is not online. RobloxWarrior89
Joined: 29 Mar 2012
Total Posts: 2388
01 Jan 2014 11:01 PM
I give up on this, I'll try later. Thanks for making the code more efficient, still doesn't function :(
Report Abuse
RobloxWarrior89 is not online. RobloxWarrior89
Joined: 29 Mar 2012
Total Posts: 2388
01 Jan 2014 11:03 PM
@Fire,
OGM THX!!1!!!1
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
01 Jan 2014 11:16 PM
Hey, no problem.
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