vippass22
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 45 |
|
|
| 23 Jul 2012 11:28 AM |
-Plane -script ->>if (game.Players:findFirstChild(script.Parent.Parent)) then...<< _____________________________________________________________________________ I dont think this is the correct way to check :l |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 23 Jul 2012 11:39 AM |
if script.Parent:IsA("Player") then --WORKSPACE not PLAYERS --code end
You could do it that way, but I would recommend using the GetPlayerFromCharacter method. |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 11:41 AM |
To know if the parent is a player:
script.Parent:IsA('Player')
To know if the parent is a player's character:
Game:GetService('Players'):GetPlayerFromCharacter(script.Parent) |
|
|
| Report Abuse |
|
|