You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Map gets destroyed and a new round starts once all players die. -
What is the issue? Include screenshots / videos if possible!
Can’t figure it out. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried to add a 1 to a value everytime a player dies and Destroy the map after it reaches a certain value.
local MapsFolder = game:GetService("ServerStorage").Maps
local Maps = MapsFolder:GetChildren()
local IntermissionTime = script.IntermissionTime
local Message = Instance.new("Hint")
while true do
local ChosenMap = Maps[math.random(1, #Maps)]
local MapClone = ChosenMap:Clone()
Message.Parent = workspace
Message.Text = "Intermission"
task.wait(IntermissionTime.Value)
Message.Parent = game:GetService("ServerStorage")
Message.Parent = workspace
Message.Text = "Map Chosen: "..ChosenMap.Name
task.wait(5)
Message.Parent = game:GetService("ServerStorage")
MapClone.Parent = game:GetService("Workspace")
MapClone:MakeJoints()
end