I found a map script in here by searching it, but apparently it didn't work for some reason. This is how I set it up in Workspace, ServerScriptService, and ServerStorage.
MapScript:
maps = game.ServerStorage.Maps:GetChildren()
function loadMap(map)
table.foreach(Workspace.currentMap:GetChildren(), function(i,v) v:Remove() end)--remove children
nmap = map:Clone()
nmap.Parent = game.Workspace.currentMap
nmap:MoveTo(Workspace.mapLocation)
end
function randMap()
loadMap(maps[math.random(1,#maps)])
end
Workspace:
--LobbySpawn (Spawned in Lobby after race)
--MapHolder (Model)
--Map1Beginner (Map1Model)
--Map2Turning (Map2Model)
ServerStorage:
--Maps (Model)
--Map1Beginner (Map1Model)
--Map2Turning (Map2Model)
--RaceCar (Map1 Car)
--RaceCar (Map1 Car)
--RaceCar (Map2 Car)
--RaceCar (Map2 Car)
ServerScriptService:
--MapScript (MapScript that I showed above)
--Map1 (For Map1) (Link for what the map script looks like: https://scriptinghelpers.org/questions/19819/how-do-i-make-the-321-imagelabel-work-in-this-script)
--Map2 (For Map2)
I hope you understand what I am saying here. :)
