If I had many models called "Tree" in the workspace and in each tree I had an IntValue called "HP," how could I delete all of the IntValues parented to any models called "Tree?" If there are any models not called "Tree" with an IntValue then the IntValue should not be destroyed.
I need to know how to edit my game this way. I know how to script the logic for this problem, I just need to know how to to edit my place in studio cause the command prompt is only 1 line.

4 comments
but how do i make it save in studio
oh so u just want to delete them from studio, then i recomment just searching for intvalue in workspace and mark everyone thats under the tree and then just delete
Just put the code in the command bar
there isnt a line u can use in the command bar to do it, u just have to do it manually