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:
local active = false function click() if active == false then sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso) sound.SoundId = "http://www.roblox.com/asset/?id=147605033" sound.Volume = 1 sound.Looped = true sound:Play() script.Parent.Selected = true active = true elseif active == true then sound:Destroy() script.Parent.Selected = false active = false end end script.Parent.MouseButton1Down:connect(click)