Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make A chat command that would change the map with enough votes?

Asked by 9 years ago
1function onChatted(message, player)
2    if message == "/vote"  then
3    game.StarterGui.MapGui.Maps.Visible = true
4      end
5end
6 
7game.Players.PlayerAdded:connect(function(player)
8    player.Chatted:connect(function(message) onChatted(message, player) end)
9end)

This is all I could think of to make a GUI to pop up then have people choose to not change map or choose a map but don't have any idea how, so if any one could help please do!

0
You should CodeBlock your code, it's the Lua icon. UniversalDreams 205 — 9y

Answer this question