Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do a create a script in a part where it destroys after its position has been changed?

My part is unanchored and it's welded to other parts. When I explode it with a bomb/rocket launcher, it unattaches from the other parts. All I want is a way to get the part to scan its position after it is free from the other parts. (The reason I'm doing this is so I can get the part to delete itself after it's free).

2 answers

If you're looking for a way to delete the parts that's been unattached, just use :Destroy()

All you do is:

-- Code above
wait(5) -- We are waiting for the part to stop moving
local pos = script.Parent.Position

-- Position functions below

This discussion is preserved as it was. New answers, comments, and votes are closed.