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 8 years ago
function onChatted(message, player)
    if message == "/vote"  then
    game.StarterGui.MapGui.Maps.Visible = true
      end
end

game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(message) onChatted(message, player) end)
end)

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 — 8y

Answer this question