ChildRemoved and ChildAdded under one event?

Is there some way to execute a script upon a Child being added AND removed under one Event. I know I can just use them separately but I want to know if there’s a way to put them together.

2 Likes

Yes you would just use this. Check google before createing a post I suggest.

I already know about ChildAdded and ChildRemoved, what I’m asking is if there is an Event or way that combines ChildAdded and ChildRemoved UNDER ONE EVENT. So, if a Child is Added OR Removed it executes the script.

function ChildAddedRemoved()

end

Instance.ChildAdded:Connect(ChildAddedRemoved)
Instance.ChildRemoved:Connect(ChildAddedRemoved)

this should work, Instance is the Instance that you have defined, the code would run in the function at the top

you can rename the function to whatever you want but make sure to change that last two lines to have that same name if you do change it

5 Likes

You would do like @D0RYU where u link it with a function then. I am not sure if there is any other way.