player = game.Players.LocalPlayer button = script.Parent song = script.Parent.Parent.Parent.Parent.forest playing = false button.MouseButton1Click:connect(function() button.Text = "ON" if playing == false then song:Play() playing = true elseif playing == true then song:Stop() button.Text = "OFF" playing = false end end) --Works in solo, doesnt work in game. please help!
The code has to be in a LocalScript for "game.Players.LocalPlayer" to work.