|
| 20 Mar 2011 10:13 AM |
Script ------------------------------------------------------------------------------------------
for _,v in pairs(game.Players:GetChildren()) do table.insert(check,v) end p = getPlayers(check) ----- line 14 m = Instance.new("Message") m.Parent = game.Workspace m.Text = "The game will start in 10 seconds!" wait(2) m:Remove()
Output ------------------------------------------------------------------------------------------
Workspace.GameScript:14: attempt to call global 'getPlayers' (a nil value)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 20 Mar 2011 10:19 AM |
So, how to create a function like that?
getPlayers = game.Players:GetChildren()?? |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
| |
|
|
| 20 Mar 2011 10:23 AM |
| But how to end the function? |
|
|
| Report Abuse |
|
|
|
| 20 Mar 2011 10:23 AM |
| BUMP, reply please. I really do not understand functions that well, can someone help me? |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
| |
|