Zecrit
|
  |
| Joined: 24 Jan 2013 |
| Total Posts: 2618 |
|
|
| 17 Jun 2014 05:10 PM |
function getRandomSpawn() if (workspace:findFirstChild("Map")) then local spawns = {} spawns = workspace.Map.Red:GetChildren() end local spawn = spawns[math.random(1, #spawns)] return spawn end return nil end
It says an eof is required right at the end, all the lines below and above this section are fine and I've got no idea what it wants me to close? e-o |
|
|
| Report Abuse |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 17 Jun 2014 05:11 PM |
Because you have a random end in there.
function if end end end -- errors |
|
|
| Report Abuse |
|