Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Localscript:317:attempt to index global 'spawn1' (a nil value)?

Asked by 6 years ago
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 
0
This is only part of the code, but this is where I believe it goes wrong. Is there anyone that can help? patrick199999 5 — 6y
0
Where is line 317? Also, why would Allowed be true when you just set it to false? Also, please indent correctly. hiimgoodpack 2009 — 6y

Answer this question