How to get folder and clone the folder into workspace

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


image

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?

1 Like

try:

local clone = mapchosen:Clone()

clone.Parent = game.workspace

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.