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

Sound is not valid member of part?

Asked by 7 years ago
script.Parent.Sound:Play()
wait(1/5)
script.Parent.Fire.Enabled = false
wait(1)
script.Parent:Destroy()
1
???? Superont 1 — 7y

1 answer

Log in to vote
1
Answered by
jotslo 273 Moderation Voter
7 years ago

This error means that Sound is not where you have told the script that it is. If the script is inside the Sound, then you should refer to it as script.Parent instead.

I hope this helps, please feel free to comment any questions!

Ad

Answer this question