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: ChildRemoved and ChildRemoving

Previous Thread :: Next Thread 
hillow25 is not online. hillow25
Joined: 20 Jan 2009
Total Posts: 125
27 Sep 2011 05:31 PM
Is there BOTH? For the same function purpose?
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
27 Sep 2011 05:35 PM
ChildRemoved fires after the child is removed and ChildRemoving fires before.
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
27 Sep 2011 05:41 PM
PARENT:ChildRemoved(function) --> Fires "function" after a child is removed from PARENT, the first variable is also changed to the child removed. (I think.)

PARENT:ChildRemoving(function) --> Fires "function" right before a child is removed from PARENT, the first variable is also changed to the child being removed (I think.)
Report Abuse
ShoeBox4 is not online. ShoeBox4
Joined: 06 Apr 2011
Total Posts: 890
27 Sep 2011 05:46 PM
Wait, so if I were to use this script:

protect = "ShoeBox4"

function onRemove(player, remover)
if player.Name == protect then
remover:remove()
end
end

game.Players.ChildRemoving:connect(onRemove)

and it would make it so if somebody kicked or banned me then they would get kicked? I've never used ChildRemoving before because I've never heard of it :3 I just took a wild guess at that script.
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
27 Sep 2011 05:47 PM
I'm not exactly sure if you can call on the remover/removal method.
Report Abuse
ServerLabs is not online. ServerLabs
Joined: 29 Dec 2010
Total Posts: 2263
27 Sep 2011 05:48 PM
Of course, you could always do some string.matching and check for the two keywords (kick,ban,YOURNAME)

if string.match("kick some narb named YOU", "kick") and string.match("kick some narb named YOU", "YOU") then
kick speaker

etc.

;D

(just an idea)
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