else
print("no players voted")
local selectedmap=math.random(1, #mapsSelection)
local mapchosen=mapsSelection[selectedmap]
mapchosen:Clone()
mapchosen.Parent=workspace-- does not seem to work since mapchosen is a folder
EventThatDestroysMaps.OnServerEvent:Connect(function()
mapchosen:Destroy()
end)
end
what the code is getting is the folders inside Maps, but how do I clone the folders into workspace without doing mapchosen.Parent, since that gets the “Maps” folder?