generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: This Script wont work?

Previous Thread :: Next Thread 
TheMinid is not online. 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 is not online. 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
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
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
DrRandomous is not online. DrRandomous
Joined: 25 Mar 2011
Total Posts: 1702
30 Dec 2013 10:08 AM
^ What TG101 said

~Twitter @DrRandomous
Report Abuse
Lapwn is not online. 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 is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
30 Dec 2013 10:11 AM
What does that mean?
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
30 Dec 2013 10:17 AM
Help anyone?
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
30 Dec 2013 10:20 AM
Help?
Report Abuse
DrRandomous is not online. DrRandomous
Joined: 25 Mar 2011
Total Posts: 1702
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 is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
30 Dec 2013 10:21 AM
I dont know what that means.
Report Abuse
TheMinid is not online. 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 is not online. 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 is not online. 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 is not online. 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
broccoli7040 is not online. broccoli7040
Joined: 30 Jul 2009
Total Posts: 22
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 is not online. Milkilla
Joined: 01 Sep 2011
Total Posts: 379
30 Dec 2013 10:48 AM
Some people just make scripts confusing :/
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
30 Dec 2013 10:53 AM
Its still visible for my friend?
Report Abuse
TheMinid is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image