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

Could someone help me with this Map Changing script?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

So I've been making a Game Engine that just gets the players in the game to spawn in a randomly chosen map. That part finally works. Now I'm trying to figure out a way so that when people die they spawn at the game if the game is still going on. I did attempt by making that SpawnLocation1 in my game Disabled.That was only the first step...

Script Below:

01minigames = game.ServerStorage.Minigames:GetChildren()
02 
03    h = Instance.new("Hint", game.Workspace)
04 
05    while true do
06        if game.Players.NumPlayers > 0 then
07            h.Text = "Deciding what game to play"
08            wait(3)
09            ranGame = math.random(1, #minigames)
10            gameChosen = minigames[ranGame]
11            h.Text = gameChosen.Name
12            wait(3)
13            gameChosenClone = gameChosen:Clone()
14            gameChosenClone.Parent = game.Workspace
15            wait(3)
View all 54 lines...

Answer this question