Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do we get the name of the removed part?

Asked by 4 years ago

So I've tried this:

Part.ChildRemoved:Connect(function(part)
    print(part.Name)
end)

This didn't work. I've also tried this :

Part.DescendantRemoving:Connect(function(part)
    print(part.Name)
end)

and this:

Part.AnscentryChanged:Connect(function(part)
    print(part.Name)
end)

but none worked. Can you help me?

0
There MUST be a solution to that. TheRealPotatoChips 793 — 4y
0
is the script a child of the part that you are trying to detect? ryan32t 306 — 4y
0
No TheRealPotatoChips 793 — 4y
0
i think what you're doing should be working. I tried ChildRemoved and function(part) to print(part) and it worked ryan32t 306 — 4y
View all comments (2 more)
0
oh? TheRealPotatoChips 793 — 4y
0
OMG THANKS I TOUGH TheRealPotatoChips 793 — 4y

Answer this question