For the past hour, i’ve been trying to figure out my issue here:
- ServerScriptService.MainGame:129: attempt to concatenate string with nil
for _,v in pairs(workspace.Map:GetChildren()) do
for _,x in pairs(v:GetChildren()) do
if x.Name == "Prisoner" then
--if v.Prisoner.Value ~= nil then
x.Value = nil
print('Set Prisoner in '.. v.Name .." to nil".. x.Value) -- line 129
--end
end
end
end
Firstly, it would set only the first prisoner to nil as well without printing anything before the error as it should’ve as well, the 2 pictures above show an example…