TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
|
| 30 Dec 2013 09:52 AM |
Im trying to make an entire ScreenGUI invisible to everyone but me. I inserted this script but it wont work:
script.Parent.Visible = false
if player.Name == "TheMinid" then script.Parent.Visible = true else script.Parent.Visible = false end
|
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 30 Dec 2013 09:57 AM |
function onPlayerEntered(nP) if nP.Parent.Name=="theminid" then nP.Parent.Humanoid.ScreenGUI.GUI.Visible=true else nP.Parent.Humanoid.ScreenGui.GUI.VIsible=false end
game.Players.PlayerAdded:connect(onPlayerEntered)
idk something like that i think *scratches head* |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 10:06 AM |
player is not defined. Change player to the path to the player. For example, if the script was in a screenGUI in the players playerGUI then the path would be script.Parent.Parent.Parent
script.Parent.Visible = false if script.Parent.Parent.Parent.Name == "TheMinid" then script.Parent.Visible = true end |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 10:08 AM |
^ What TG101 said
~Twitter @DrRandomous |
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 30 Dec 2013 10:09 AM |
| crap now a bunch of TG101 fans are going to spam this thread look what you did. |
|
|
| Report Abuse |
|
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
| |
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
| |
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
| |
|
|
| 30 Dec 2013 10:21 AM |
Stop bumping this.
"player is not defined. Change player to the path to the player. For example, if the script was in a screenGUI in the players playerGUI then the path would be script.Parent.Parent.Parent
script.Parent.Visible = false if script.Parent.Parent.Parent.Name == "TheMinid" then script.Parent.Visible = true end" --TheGamer101.
~Twitter @DrRandomous |
|
|
| Report Abuse |
|
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
|
| 30 Dec 2013 10:21 AM |
| I dont know what that means. |
|
|
| Report Abuse |
|
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
|
| 30 Dec 2013 10:23 AM |
| I dont understand the script.Parent.Parent part. |
|
|
| Report Abuse |
|
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
|
| 30 Dec 2013 10:27 AM |
Would it be like this?
script.Parent.Visible = false if script.Parent.Parent.Players.Name == "TheMinid" then script.Parent.Visible = true end |
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 30 Dec 2013 10:31 AM |
| @above lol you noob you just copied what TG101 wrote. |
|
|
| Report Abuse |
|
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
|
| 30 Dec 2013 10:32 AM |
| No I didnt, I replaced the last .Parent with .Players. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 10:33 AM |
@OP no you need another .Parent on the script.Parent.Parent part to get to the player whos playing |
|
|
| Report Abuse |
|
|
Milkilla
|
  |
| Joined: 01 Sep 2011 |
| Total Posts: 379 |
|
|
| 30 Dec 2013 10:48 AM |
| Some people just make scripts confusing :/ |
|
|
| Report Abuse |
|
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
|
| 30 Dec 2013 10:53 AM |
| Its still visible for my friend? |
|
|
| Report Abuse |
|
|
TheMinid
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 128 |
|
|
| 30 Dec 2013 11:15 AM |
| I've edited it about 5 times, but my friend still sees the GUI for some reason. |
|
|
| Report Abuse |
|
|