i have this script:
local enemyai=require(game.ServerScriptService.Module.Classes.Enemy.EnemyAi)
local source = {}
for _,n in pairs{workspace.Course.Paths:GetChildren()}do
source[n.Tag.Value]= n
end
source["StartingPoint"] = workspace.Course.Other.StartPath
enemyai:StartEnemy(source,"Regular")
and it is not working and saying "ServerScriptService.Scripts.Testing:6: attempt to index field 'Tag' (a nil value)"

8 comments
Can you please post your code in the proper code manner so I can take a proper look?
what is that ? :D
im new at scripting :)
where i can find/post it ?
you have posted 5 lines of the code, the error is in line 6, we cant help you if you won't post that.
i dont have the 6th line this is full script
the 6 line is the source[n.Tag.value]= n
edit:- code block