|
| 07 Mar 2015 09:23 PM |
w = Instance.new("Sound", game.Players.LocalPlayer.PlayerGui) w.Soundid = "rbxassetid://224412723" w:Play() |
|
|
| Report Abuse |
|
|
tyler5819
|
  |
| Joined: 14 Feb 2010 |
| Total Posts: 683 |
|
|
| 07 Mar 2015 09:28 PM |
| What's the error it's outputting? |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2015 09:31 PM |
| it is saying that Soundid is not a valid member of Sound |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2015 09:32 PM |
| Nvm. Just needed to capitalize the I |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2015 09:34 PM |
local s = Instance.new("Sound", game.Workspace)
function RunSound() s.SoundId = "rbxassetid://224412723" wait() s:Play() print("Music is on!")
end
RunSound() |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2015 09:35 PM |
Yup, that works. Tested it in studio just now. Hope that helps!
Tip: You have to put the sound in Workspace, PlayerGui is not a valid member of 'Sound' |
|
|
| Report Abuse |
|
|