Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 17 Aug 2016 03:21 PM |
"Music is not a valid member of Player Gui"
It's right there in Player Gui. |
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 17 Aug 2016 03:21 PM |
PlayerGui:WaitForChild('Music')
|
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 17 Aug 2016 03:24 PM |
| No it's an onTouched function and when I touch it the "not a valid member" situation appears in the output |
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
| |
|
|
| 17 Aug 2016 04:47 PM |
| gui:WaitForChild("Music"):Play() |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2016 04:50 PM |
| if you have FE on then the server cannot access playerguis |
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
| |
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
| |
|
|
| 17 Aug 2016 05:15 PM |
ontouched on a gui? is that even possible?
use mousebutton1click
i like ducks bro. deal wit it. |
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 17 Aug 2016 05:20 PM |
script.Parent.Touched:connect(function(hit)
It takes hit's parent (which is the character obviously) and it gets player from character (as defined in the script), and it affects the music in the Player Gui. BUT WHY THE HECK DOES THE OUTPUT SAY THAT IT'S NOT A VALID MEMBER!? |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2016 05:22 PM |
uh post the script please
and does it run in studio but not ig?
i like ducks bro. deal wit it. |
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 17 Aug 2016 05:23 PM |
It comes out as hashtags.
...I can't. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2016 05:25 PM |
k atleast answer myquestion
i like ducks bro. deal wit it. |
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
|
| 18 Aug 2016 01:00 PM |
| Okay, I have no idea what IG is... |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2016 01:02 PM |
use hastebin and post code there
This siggy is copyrighted © |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 18 Aug 2016 01:02 PM |
oml
part.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then local music = player.PlayerGui:WaitForChild('Music') music:Play() end end)
|
|
|
| Report Abuse |
|
|
Fireoria
|
  |
| Joined: 02 Nov 2014 |
| Total Posts: 8142 |
|
| |
|