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 |
|
|
| |
|
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 |
|
|
|
| 10 Jan 2015 09:55 PM |
if game.player.LocalPlayer.PlayerGui:FindFistChild("ExampleGui")==nil then Maybe? Does it make a difference? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|