Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

attempt to index field 'Parent' (a nil value) - What...?

Asked by
hudzell 238 Moderation Voter
10 years ago

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.

1 answer

Log in to vote
0
Answered by
hudzell 238 Moderation Voter
10 years ago

Oh never mind, I figured it out. The fact that it was removing itself instantly made it do that.

Ad

Answer this question