hillow25
|
  |
| Joined: 20 Jan 2009 |
| Total Posts: 125 |
|
|
| 27 Sep 2011 05:31 PM |
| Is there BOTH? For the same function purpose? |
|
|
| Report Abuse |
|
|
|
| 27 Sep 2011 05:35 PM |
| ChildRemoved fires after the child is removed and ChildRemoving fires before. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 27 Sep 2011 05:47 PM |
| I'm not exactly sure if you can call on the remover/removal method. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|