MadSanity
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 41506 |
|
|
| 27 Feb 2017 09:40 AM |
This is the snippet causing me troubles.
local PlayerOne = game.Players:GetPlayers() if PlayerOne.Backpack:FindFirstChild("PoolCue1") then |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2017 09:56 AM |
Hi, I am almost think that your error is being called because PlayerOne will be a table therefore it has no such value as .backpack. To call the first player in that table you find you could do
local PlayerOne = game.Players:GetPlayers() if PlayerOne[1].Backpack:FindFirstChild("PoolCue1") then
That may work for your use!
-HuntedAreTheHunters |
|
|
| Report Abuse |
|
|
MadSanity
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 41506 |
|
|
| 27 Feb 2017 09:59 AM |
| I was focusing too much on where the error was apparently |
|
|
| Report Abuse |
|
|
|
| 27 Feb 2017 10:06 AM |
local PlayerOne = game.Players:GetPlayers() fir _,v in pairs(PlayerOne) do if PlayerOne.Backpack:FindFirstChild("PoolCue1") then |
|
|
| Report Abuse |
|
|
12904
|
  |
| Joined: 29 Oct 2012 |
| Total Posts: 441 |
|
|
| 27 Feb 2017 10:22 AM |
| ^ I think it is accualy if v.Backpack:FindFirstChild("PoolCue1") then |
|
|
| Report Abuse |
|
|