How to fix this sound script?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
Hello, I was wondering how to fix this script. I get this error whenever it gets activated. Also more info, it's supposed to play a sound for the player and anyone else around the player.
http://prntscr.com/bc1kxk
This is the code:
04 | if active = = false then |
05 | sound = Instance.new( "Sound" , game.Players.LocalPlayer.Character.Torso) |
10 | script.Parent.Selected = true |
12 | elseif active = = true then |
14 | script.Parent.Selected = false |
19 | script.Parent.MouseButton 1 Down:connect(click) |