I have been working on a server but i dont know how to change the map or load a intermisson if anyone can help that well be great thanks
COMMUNITY QUESTION
How do i make a auto changing map and the intermission?
1 answer
I hope this will help watch previous videos for additional scripting help.
https://www.youtube.com/watch?v=oawuZNaM-rI&list=PLuEQ5BB-Z1PJ4JIDXpttxuvCzJMeIqzMi&index=18
If this is what you needed please accept my answer.
I also added a script
local RoundLength = 10 -- How long the rounds are in seconds.
local IntermissionLength = 5 -- How long the intermission is in seconds.
local RoundStartTime -- To tell when the round starts.
local map = workspace:WaitForChild("Map")
map.Parent = game:Workspace("ServerStorage")
local function initialize()
local MapCopy = map:Clone()-- A copy of the map
MapCopy.Name = "MapCopy"
MapCopy.Parent = game.Workspace
RoundStartTime = tick() -- Tick = What current time is in seconds.
return MapCopy
end
local function cleanup(Map)
Map:Destroy()
end
while true do
local Map = initialize()-- Puts current time in round start time.
repeat wait(0.1)
local CurrentTime = tick()
local TimeSinceGameStarted = CurrentTime - RoundStartTime
print(TimeSinceGameStarted)
until TimeSinceGameStarted > RoundLength
cleanup(this_map)
wait(IntermissionLength)
end
This will start a round and after the round it will reload the map then start the intermission.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Its not game:Workspace("ServerStorage"), it is game:GetService("ServerStorage")