Basically, after a countdown, a Random map is supposed to be chosen, which works fine. If player touches any part of the random selected map, they are supposed to die, but it's not working attempt to index nil with 'Connect'
local chooseRandom = game.ServerStorage:GetChildren()
local theChosenMap = chooseRandom[math.random(1, #chooseRandom)]
local cloneTheChosenMap = theChosenMap:Clone()
cloneTheChosenMap.Parent = workspace.Game.currentMap
--kill when player touches part
for i, v in pairs(theChosenMap:GetDescendants()) do
v:GetChildren().Touched:Connect(function(hit)
print("hi")
end)
end
