MarshyloI
(Marshy)
#1
Hello,
This may sound like I don’t belong here but I’m doing this very VERY simple script that for some reason doesn’t work.
script.Parent.Unequipped:Connect(function()
script.Parent:Destroy()
end)
It’s supposed to delete the tool from your inventory when you unequip the tool but it instead destroys the Handle. Is the :Destroy() broken?
2 Likes
Where is your script located ?
MarshyloI
(Marshy)
#3
I’ve tried LocalScript and Script, they both don’t seem to do anything.
1 Like
thats not the answer i was looking for haha. Where is your script located ? Could you send a screenshot ?
1 Like
MarshyloI
(Marshy)
#5
I misread alright, It’s located inside the tool.
k so i typed this in a script and it worked parent of the script is the tool
script.Parent.Unequipped:Connect(function()
wait()
script.Parent:Destroy()
end)
1 Like
MarshyloI
(Marshy)
#8
Bro, I hate that wait(), anyways thanks!
2 Likes
Thank you so much, I was trying to make a donut that destroys when eaten, and this helped!