of     1   

SteamRail
#144437218Sunday, August 24, 2014 10:29 PM GMT

Why does this script make my music turn off globally? e=game.StarterGui.LocalScript.Nature e:play() function musicoff() e:stop() end game.Workspace.soundmodel.soundbrick.Touched:connect(musicoff) I hid the sound object in StarterGui I thought maybe that would make it local.
Kannivalismos
#144437448Sunday, August 24, 2014 10:32 PM GMT

your making the startergui's sound stop/start playing you need to make the playergui's sound stop/start playing meaning, function musicoff(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then plr = game.Players:GetPlayerFromCharacter(hit.Parent) plr.PlayerGui.LocalScript.Nature:stop() end end game.Workspace.soundmodel.soundbrick.Touched:connect(musicoff)
SteamRail
#144441960Sunday, August 24, 2014 11:32 PM GMT

Okay thanks that stopped it fine. Now I don't know how to make the music play locally either e=game.Players.LocalPlayer.PlayerGui.LocalScript.Nature e:play() This works fine when I'm testing solo but not when I'm playing online.
Electrodacity
#144442082Sunday, August 24, 2014 11:33 PM GMT

AFAIK it's supposed to be :Play() and :Stop(), but I might be wrong.
SteamRail
#144442259Sunday, August 24, 2014 11:36 PM GMT

It works with just :play()/:stop()
zakarq
#144442793Sunday, August 24, 2014 11:43 PM GMT

es script de local?
SteamRail
#144442849Sunday, August 24, 2014 11:44 PM GMT

Yes it's a localscript

    of     1