Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
|
| 10 Jun 2014 04:47 AM |
if Player:FindFirstChild("leaderstats").KOs== 10 then end
How do you define Player? |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 04:50 AM |
wat... Have you never learned about variables in math class? Player = game.Players.PLAYERNAME if Player:FindFirstChild("leaderstats").KOs== 10 then
end
or
if game.Players.PLAYERNAME:FindFirstChild("leaderstats").KOs== 10 then
end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 10 Jun 2014 05:17 AM |
| Why don't you just do .leaderstats and add a .Value after KOs? |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 05:30 AM |
| Ohh, Right, You'll need to fetch the Value property. |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 06:45 AM |
| Depends. Are you running this from a LocalScript or a Script? Where is the script located? |
|
|
| Report Abuse |
|
|
eletrowiz
|
  |
| Joined: 08 Dec 2008 |
| Total Posts: 12438 |
|
|
| 10 Jun 2014 06:49 AM |
To find it from a LocalScript, use player = game.Players.LocalPlayer To find it from a Script, you need to find the character, then use player = game.Players:GetPlayerFromCharacter(character) |
|
|
| Report Abuse |
|
|
Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
|
| 10 Jun 2014 02:46 PM |
| No, I'm trying to find a Global player. Like anyone in the server, not just one person in particular. |
|
|
| Report Abuse |
|
|
Perci1
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 1027 |
|
|
| 10 Jun 2014 02:51 PM |
| To get all the players loop through them with a for loop. |
|
|
| Report Abuse |
|
|
Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
|
| 10 Jun 2014 02:52 PM |
Like for anther example, I'm not sure this would work..
local LevelUpLight= Instance.new ("PointLight" ,game.Players:FindFirstChild("Head")) |
|
|
| Report Abuse |
|
|
Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
| |
|
Perci1
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 1027 |
|
|
| 10 Jun 2014 04:08 PM |
| Well, it would work if a player's name was "Head" |
|
|
| Report Abuse |
|
|
Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
| |
|
Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
| |
|
Kratos232
|
  |
| Joined: 28 Oct 2011 |
| Total Posts: 229 |
|
|
| 11 Jun 2014 12:33 AM |
OMG Player = Game.Players["NAMEHERE"] That's how!
~I like Toast~ |
|
|
| Report Abuse |
|
|
Surgo
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 2748 |
|
|
| 11 Jun 2014 01:51 PM |
| No. I don't want ONE person in particular |
|
|
| Report Abuse |
|
|