I have ran into a tricky situation. I am using :IsA() to find anything with the Tool ClassName inside a folder, which is due to multiple tools inside the folder. I do not know what is causing the error.
Output:
15:27:55.917 - ServerScriptService.MainGameScript:290: attempt to call method 'IsA' (a nil value) 15:27:55.918 - Stack Begin 15:27:55.918 - Script 'ServerScriptService.MainGameScript', Line 290 15:27:55.918 - Stack End
Code:
CBBToolsFolder = MinigameTools.ClassicBrickbattle
CBBTools = CBBToolsFolder:GetChildren()
if CBBTools:IsA("Tool") and CurrentMap.MapName.Value == "Classic Brickbattle" then
for i = 1, #Player do
CBBTools:Clone().Parent = Player[i].Backpack
end
end

2 comments
It helped! Thanks
@ModifiedBlox No problem!