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 » Scripters
Home Search
 

Re: FindFirstChild Help

Previous Thread :: Next Thread 
playbody2 is not online. playbody2
Joined: 21 Jan 2010
Total Posts: 127
10 Jan 2015 09:47 PM
So I seem to always have a problem with Checking if something is there so like..
if not game.player.LocalPlayer.PlayerGui:FindFistChild("ExampleGui") then

script.Parent:clone().Parent = player.PlayerGui

basically I want it to check if the player already has the gui so it doesn't give the same gui twice. Yea this is also an ontouch.

any help?
Report Abuse
thermonuklear is not online. thermonuklear
Joined: 19 Oct 2014
Total Posts: 484
10 Jan 2015 09:49 PM
game.Players*
Report Abuse
playbody2 is not online. playbody2
Joined: 21 Jan 2010
Total Posts: 127
10 Jan 2015 09:52 PM
Well yea this was an example (typo) but that still doesn't work :/
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
10 Jan 2015 09:55 PM
if game.player.LocalPlayer.PlayerGui:FindFistChild("ExampleGui")==nil then
Maybe? Does it make a difference?
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
10 Jan 2015 09:56 PM
Of course, fixing your typo would help too.

if game.Players.LocalPlayer.PlayerGui:FindFistChild("ExampleGui")==nil then
Report Abuse
playbody2 is not online. playbody2
Joined: 21 Jan 2010
Total Posts: 127
10 Jan 2015 10:10 PM
player is not a valid member of DataModel ---lol wha?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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