why do I have the error Players.napastnikiek1.PlayerGui.Manager.BulidMode.BulidLocal:17: attempt to index nil with ‘Name’
local script
for _, v in pairs(workspace.Map.Hall1:GetDescendants()) do
if v.Name == "ExtraSlot" or v.Parent.Name == "MachineSlots" then
v.Transparency = 1
local clickDetector = v:FindFirstChildOfClass("ClickDetector")
if clickDetector then
clickDetector:Destroy()
end
end
end