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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
15 Jul 2013 10:48 PM

spam = false
if spam == true then return end
spam = true
wait(1)

textlabel = game.StarterGui.Count.Frame.Brick
w = Workspace:GetChildren()
local x = Instance.new('IntValue')
for i, v in pairs(w) do
if v:IsA('BasePart') then
local x = Instance.new('IntValue')
x.Parent = game.StarterGui.Count.Frame.Brick
Intvalue = x
Intvalue.Changed:connect(function() textlabel.Text = Intvalue.Value; end);
x.Value = 1
end
end


for i, v in pairs(w) do
if v:IsA('Model') then
q = v:GetChildren()
for i, v in pairs(q) do
if v:IsA('BasePart') then
x.Value = 1
spam = false

end
end
end
end







spam = false
if spam == true then return end
spam = true
wait(0.1)
local label = script.Parent
label.ChildAdded:connect(function(child)
if child:IsA('IntValue') or child:IsA('NumberValue') then
local origVal = tonumber(label.Text);
local newVal = origVal + child.Value;

label.Text = tostring(newVal);
end;
child:Destroy();
spam = false
end);
Report Abuse
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
16 Jul 2013 12:03 AM
;-;
Report Abuse
baheeg is not online. baheeg
Joined: 19 Jul 2010
Total Posts: 72846
16 Jul 2013 01:11 AM
[ Content Deleted ]
Report Abuse
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
16 Jul 2013 01:24 AM
@Bah
No output
and i want it to count each brick in workspace and add a new value which changes the textlabel
But the textlabel only changes once and doesn't add all the values
Report Abuse
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
16 Jul 2013 12:03 PM
bump
Report Abuse
rtardbob123 is not online. rtardbob123
Joined: 13 Feb 2010
Total Posts: 15868
16 Jul 2013 01:49 PM
anyone?
Report Abuse
Paschendale is not online. Paschendale
Joined: 12 Jul 2013
Total Posts: 21
16 Jul 2013 02:11 PM
"Posting a few hundred lines of code, saying "it doesn't work", will get you ignored."
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