Map Selection System?

Hello! This is my first post so sorry if I do things wrong.

I would like to know how to make a map selection system. I have seen a few but none of them worked for me. If you could help me with this it would be highly appreciated. :grinning:

2 Likes

What were the few you have seen that doesn’t work for you? Also for map selection are you looking for a physical map voting in lobby or a gui map voting system? Or are the maps just randomly chosen by the game?

I cant really remember the few I tried and I am looking for a gui map voting system.

For a gui map voting system, you need to have the clients vote → server receives results → server chooses map based on which one has the most votes. Did you perhaps forgot to use remote functions and events? Maybe when the client casts their vote, the server does not receive the result.

Hi! Have you found a solution yet?

I have a model created by a youtuber, HowToRoblox.

https://www.roblox.com/library/5057041530/Map-Vote-GUI

Fullest credit to him, if you are wondering where is the video, I’ll link it here.

1 Like

I don’t know how to make a map voting system but I know how to choose a random map.
Make a folder insert all of the maps and type this.

First insert a script inside serverscriptservice.
Name the script Main script
Insert a module script.

Type this script in the module script

function randMap()
	local rand = Random.new()
	local maps = game.Workspce.Maps:GetChildren()
	local choosedchapter = chapters[rand:NextInteger(1, #chapters)]
end

Now go to the Main script and type this.

local module = require(script.ModuleScript)

local ChooedMap = module.randMap

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

Hope this helps :smile:

3 Likes

Wait, but where is the Folder with the maps parented in? Is it in something like ServerStorage? Or maybe ReplicatedStorage?

For now I made it in the workspace you need to put them in Replicated Storage.