Map Duping Problem

Hi Guys, I have a problem with my script as the script keeps on duping maps into the game. I only want one map to be cloned from my maps folder into workspace but it is adding more and more maps into workspace. Here is the code

local AvailableMaps = MapsFolder:GetChildren()

local ChosenMap = AvailableMaps[math.random(1,#AvailableMaps)]

local ClonedMap = ChosenMap:Clone()
ClonedMap.Parent = workspace

When youre done with the Map use Debris:AddItem()
Is it cloning repeatedly like making multiple versions of the map at once?

If this is just a one-use script which does not need to be used anywhere else, you can just add a line to destroy your script at the end.

script:Destroy()

Or make your Script disabled until it’s needed again.

script.Disabled = true

These are just very basic ways you can use to cancel/disable a script after it has finished it’s function.

Is that the whole script, if not, please send the full one that contains the Map Chooser