DevTechn0
|
  |
| Joined: 17 May 2015 |
| Total Posts: 1625 |
|
|
| 22 Jan 2016 04:18 PM |
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() game.StarterGui.Music.Musicscript.MUSIC1:Play() end)
|
|
|
| Report Abuse |
|
|
| |
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 22 Jan 2016 04:25 PM |
| you're trying to play something in the StarterGui, you need to use the PlayerGui |
|
|
| Report Abuse |
|
|
DevTechn0
|
  |
| Joined: 17 May 2015 |
| Total Posts: 1625 |
|
|
| 22 Jan 2016 04:29 PM |
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() game.PlayerGui.Music.Musicscript.MUSIC1:Play() end)
it still dosnt work
|
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 22 Jan 2016 04:33 PM |
| player.PlayerGui, not game.PlayerGui |
|
|
| Report Abuse |
|
|
DevTechn0
|
  |
| Joined: 17 May 2015 |
| Total Posts: 1625 |
|
|
| 22 Jan 2016 04:36 PM |
i fixed it, i just threw MUSIC1 into workspace lmao
|
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 22 Jan 2016 04:38 PM |
| that means that if your game is fe = false then whoever clicks the button will make the song play for everyone in the server |
|
|
| Report Abuse |
|
|
iMung
|
  |
| Joined: 11 Jul 2013 |
| Total Posts: 328 |
|
|
| 22 Jan 2016 04:39 PM |
| Its not working most likely because your saying game.StarterGui, and game.Players.LocalPlayer. Use game.Players.LocalPlayer only when its a localscript. |
|
|
| Report Abuse |
|
|
| |
|