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()
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()
Part.Touched:connect.CanCollide = true
-- or nah
Why not a touched event?
script.Parent.Touched:connect(function(hit) hit:Destroy() end)
Sorry. I forgot to put that in a code thing.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
What is goldkey?? This script isn't good.