I'm creating an intermission script, and I'm stuck on how I'll remove the map after the round is over (The ending of the script).
The working part of the script:
local replicatedstorage = game:GetService ("ReplicatedStorage")
local status = replicatedstorage:WaitForchild("Value")
while true do
for i = 30,1,-1 do
status.value = "Intermission Time: "
wait(1)
end
local map = game.ServerStorage.Map1
Map:Clone().Parent = game.Workspace
wait(20)
I've been thinking about the one below. (Though it hasn't worked the times I've tested it)
game.workspace.BaseMap:Remove()
status.value = "Round finished; Good game Contestants!"
end
I need help to figure out the last part.Is there anyway to fix this problem?

1 comment
First, :Remove() is deprecated. Use :Destroy() instead.