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: ChildAdded

Previous Thread :: Next Thread 
randellman is not online. randellman
Joined: 16 Jun 2008
Total Posts: 897
22 Jul 2011 01:39 PM
Well I got my tables and everything all working but this is the function that is not working... Since that update. I'm not sure it looks perfect and should work right.




function onChildAdded(child)
for i =1,#blocked do
p1 = string.lower(blocked[i])
p2 = string.lower(child.Name)
if string.match(p2,p1) then
m = Instance.new("Hint", workspace)
m.Name = "BlockerHnt"
m.Text = "Object Name ["..child.Name.."] Is Blocked"
child:remove()
wait(1)
CleanClass(workspace,"Hint")
end end end
game.DescendantAdded:connect(onChildAdded)
Report Abuse
Ronnie124 is not online. Ronnie124
Joined: 26 Nov 2009
Total Posts: 694
22 Jul 2011 01:55 PM
It looks fine to may, may you post your CleanClass function, please?
Report Abuse
randellman is not online. randellman
Joined: 16 Jun 2008
Total Posts: 897
22 Jul 2011 10:15 PM
Oh sorry just ignor that that just cleans the thing specified and it works 100%.
Report Abuse
scepile3 is not online. scepile3
Joined: 27 Feb 2009
Total Posts: 260
23 Jul 2011 01:09 AM
Can you post the output, if there is any? (if there isn't just say there isn't. XD)
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
23 Jul 2011 01:14 AM
"end end end"

BAD.

But I don't see any problems that could be causing the script to break...

If you're testing it in ROBLOX Studio, events usually don't fire correctly in it, so try testing it some other way. Perhaps online.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
23 Jul 2011 01:20 AM
"for i =1,#blocked do" -- is 'blocked' defined in your script?
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