I want to destroy a script inside a Tool from a script inside a Textbutton.
script.Parent.Parent.Parent.Parent.Parent.Character.Tool.GuiAppear(Destroy)
--Starting script > TextButton > Frame > ScreenGui > PlayerGui > Player > Player's Character > Tool > Script I want to destroy.
I don't see anything wrong with my line of script, but every time I try and use it it gives me the error message "attempt to index field 'Parent' (a nil value)"
What's wrong?

3 comments
No, because when the tool is active it is not in the Backpack it is in the Character model. It goes into the backpack when it is not being used,
Fair enough. I can't help then sorry. Looks okay to me. (maybe try :Destroy() rather than (destroy) though? Not sure why it would throw that error)
Oops, I didn't see this comment, and I came to that same conclusion on my own. Changed it to :Destroy(0 and now it works. Thanks!