foundair= (v3:FindFirstAncestor("212th Attack Battalion"))
print (foundair)
if foundair~="212th Attack Battalion" then
Allowed=true
else
Allowed=false
if Allowed then
spawn1=game.Workspace.AirborneSpawn
print(spawn1)
else
spawn1=game.Workspace.FriendSpawn
print(spawn1)
end
end
COMMUNITY QUESTION
Localscript:317:attempt to index global 'spawn1' (a nil value)?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This is only part of the code, but this is where I believe it goes wrong. Is there anyone that can help?
Where is line 317? Also, why would Allowed be true when you just set it to false? Also, please indent correctly.