of     2   
chevron_rightchevron_rightchevron_right

TairaShigemori
#142213984Thursday, July 31, 2014 9:24 PM GMT

game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg:lower()=="play music" then m=Instance.new("Message",player.PlayerGui) wait(0.1) game.Workspace.Music.Music1:Play() if msg:lower()=="stop music" then m=Instance.new("Message",player.PlayerGui) game.Workspace.Music.Music1:Pause() end end end idk if ends should be there this script is to make music play upon command. thanks for reading, btw it's so messed up because I edited it. :-)
Valtameri
#142214160Thursday, July 31, 2014 9:26 PM GMT

The ends should look like this end end end) end)
TairaShigemori
#142214549Thursday, July 31, 2014 9:31 PM GMT

That get's rid of the syntax's, but the music still doesn't play. Here is what it looks like now: game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg:lower()=="play music" then m=Instance.new("Message",player.PlayerGui) game.Workspace.Music.Music1:Play() if msg:lower()=="stop music" then m=Instance.new("Message",player.PlayerGui) game.Workspace.Music.Music1:Pause() end end end) end)
TairaShigemori
#142215453Thursday, July 31, 2014 9:41 PM GMT

bump
TairaShigemori
#142216062Thursday, July 31, 2014 9:48 PM GMT

Please help. :-/
BlupoV2
#142216191Thursday, July 31, 2014 9:50 PM GMT

One of your end's is in the wrong place.
EchoingEndlessly
#142216335Thursday, July 31, 2014 9:51 PM GMT

one ur parenthesis is in the wrong place*
TairaShigemori
#142264010Friday, August 01, 2014 9:21 AM GMT

Okay, what SHOULD it look like?
TairaShigemori
#142265293Friday, August 01, 2014 10:04 AM GMT

bump
SenseiWarrior
#142265489Friday, August 01, 2014 10:11 AM GMT

sound:Play()
TairaShigemori
#142266337Friday, August 01, 2014 10:39 AM GMT

still not working? game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg:lower()=="play music" then m=Instance.new("Message",player.PlayerGui) sound:Play() if msg:lower()=="stop music" then m=Instance.new("Message",player.PlayerGui) sound:Pause() end end end) end)
SenseiWarrior
#142266378Friday, August 01, 2014 10:40 AM GMT

First of all, sound isnt defined and youre not even instancing a new sound, youre instancing a new message.
TairaShigemori
#142266424Friday, August 01, 2014 10:42 AM GMT

darn, i probably shouldnt try mixing scripts.. i think i can instance sound but what do need to put to define it?
AnonyAnonymous
#142266445Friday, August 01, 2014 10:42 AM GMT

sound = Instance.new("Sound")
TairaShigemori
#142266472Friday, August 01, 2014 10:43 AM GMT

actually idk how to instance it either, the music script i have (just music, no voice commands) has no instance or definitions.
TairaShigemori
#142266536Friday, August 01, 2014 10:46 AM GMT

fgs, it works BUT it starts when i join the game, the whole aim is to make it play upon someone saying 'play music'
AnonyAnonymous
#142266543Friday, August 01, 2014 10:46 AM GMT

Instance.new() creates a new instance, Sound = Instance.new("Sound") defines "Sound" as referring to the actual "Sound" object which is the variables value.
TairaShigemori
#142266551Friday, August 01, 2014 10:47 AM GMT

Nevermind that, i had a music script on. xD
TairaShigemori
#142266586Friday, August 01, 2014 10:48 AM GMT

okay should it be sound = Instance.new("Sound") or Sound = Instance.new("Sound")?
SenseiWarrior
#142266604Friday, August 01, 2014 10:49 AM GMT

It doesnt matter, its just a variable
TairaShigemori
#142266680Friday, August 01, 2014 10:51 AM GMT

btw i really appreciate you two for helping me, thank you. It still doesn't work though. game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg:lower()=="play music" then sound=Instance.new("Sound") sound:Play() if msg:lower()=="stop music" then sound=Instance.new("Sound") sound:Pause() end end end) end)
AnonyAnonymous
#142266757Friday, August 01, 2014 10:54 AM GMT

Did you assign a SoundId?.
TairaShigemori
#142266805Friday, August 01, 2014 10:56 AM GMT

Yep, i inserted it correctly aswell. I've used a music script before, but i'm trying to make one that works upon command.
TairaShigemori
#142268408Friday, August 01, 2014 11:43 AM GMT

bump
TairaShigemori
#142268881Friday, August 01, 2014 11:57 AM GMT

bump

    of     2   
chevron_rightchevron_rightchevron_right