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

How do you make a script where two parts collide, the object that is being collided will delete?

The object that is being hit is called 'dooropen' and the object that is colliding it is call 'goldkey'

I tried it right here

if goldkey:connected(function)("dooropen")
 then
script.Parent:Remove()

1 comment

0

What is goldkey?? This script isn't good.

2 answers

Why not a touched event?

script.Parent.Touched:connect(function(hit) hit:Destroy() end)

1 comment

0

Sorry. I forgot to put that in a code thing.

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