Alright, so I'm trying to make a cannon that sprays debris everywhere, all of it works but one thing. For some reason the script in the debris part that damages a player upon touching (script.Parent.Touched:connect(function()) the player. To look at the code and other stuff that might be causing it, the place is here.
COMMUNITY QUESTION
attempt to index field 'Parent' (a nil value) - What...?
1 answer
Oh never mind, I figured it out. The fact that it was removing itself instantly made it do that.
This discussion is preserved as it was. New answers, comments, and votes are closed.
