of     1   

ownage8941
#139802560Wednesday, July 09, 2014 10:09 PM GMT

ok so i have made a script it is a bit like a minigame i have wrote the whole mainscript out i just need someone to edit it so when there is one player left the game ends can anyone help
ownage8941
#139807623Wednesday, July 09, 2014 10:59 PM GMT

bump
AnonyAnonymous
#139807901Wednesday, July 09, 2014 11:02 PM GMT

Alive = {} while wait() do if #Alive == 1 then --Code Here end end
ownage8941
#139808416Wednesday, July 09, 2014 11:06 PM GMT

im not that much of an advanced scripter thats y i am paying to have this feature added for me
BuildIntoGames
#139808588Wednesday, July 09, 2014 11:08 PM GMT

Use tables to record who is alive, and who is not. For each death, remove a player from the table. The last player in the table wins.
ownage8941
#139897836Thursday, July 10, 2014 6:57 PM GMT

and how would i do that?
Dralian
#139898305Thursday, July 10, 2014 7:01 PM GMT

@Skit. One, scripting requires grammar. Two, read the wiki.
ownage8941
#139902516Thursday, July 10, 2014 7:42 PM GMT

i can script basic wiki teaches stuff i already know
LegendaryAccount
#139903197Thursday, July 10, 2014 7:49 PM GMT

is it using teams? playing and spectators? or w/e
ownage8941
#139913057Thursday, July 10, 2014 9:31 PM GMT

im gonna post the script and im gonna pay to have that feature added if someone will Minigames = game.Lighting.Minigames:GetChildren() h = Instance.new("Hint", game.Workspace) while true do if game.Players.NumPlayers > 1 then h.Text = "Deciding what map to play :P" Wait(3) ranGame = math.random(1, #Minigames) gameChosen = Minigames[ranGame] h.Text = gameChosen.Name.. " Has Been Chosen" gameChosenClone = gameChosen:Clone() gameChosenClone.Parent = game.Workspace wait(1) for i = 10, 1, -1 do h.Text = "Game Loading: " ..i wait(1) end Wait(0.5) Spawns = gameChosenClone.Spawns:GetChildren() for i, v in pairs(game.Players:GetPlayers()) do name = v.Name check = game.Workspace:FindFirstChild(name) if check then checkHumanoid = check:FindFirstChild("Humanoid") end if checkHumanoid then sword = game.Lighting.Sword:Clone() sword.Parent = v.Backpack v.Character:MoveTo(Spawns[i].Position) end end for i = 3, 1, -1 do h.Text = "Game begins in: " ..i Wait(1) end for i = 30, 1, -1 do h.Text = "Time Left: " ..i Wait(1) end h.Text = "Game Ended" Wait(3) gameChosenClone:Destroy() else h.Text = "Need more than 1 player to start :/" end Wait(1) end
ownage8941
#139987730Friday, July 11, 2014 3:15 PM GMT

bump
ownage8941
#140001849Friday, July 11, 2014 5:53 PM GMT

bump
ownage8941
#140028952Friday, July 11, 2014 10:30 PM GMT

anyone ill pay just need that feauture added to the script
LegendaryAccount
#140029970Friday, July 11, 2014 10:41 PM GMT

so you were not using team
ownage8941
#140034517Friday, July 11, 2014 11:27 PM GMT

no
ownage8941
#140087245Saturday, July 12, 2014 1:24 PM GMT

paying anyone who can add to my script a feature that makes it so when there is only 1 more player alive the game ends the script: Minigames = game.Lighting.Minigames:GetChildren() h = Instance.new("Hint", game.Workspace) while true do if game.Players.NumPlayers > 1 then h.Text = "Deciding what map to play :P" Wait(3) ranGame = math.random(1, #Minigames) gameChosen = Minigames[ranGame] h.Text = gameChosen.Name.. " Has Been Chosen" gameChosenClone = gameChosen:Clone() gameChosenClone.Parent = game.Workspace wait(1) for i = 10, 1, -1 do h.Text = "Game Loading: " ..i wait(1) end Wait(0.5) Spawns = gameChosenClone.Spawns:GetChildren() for i, v in pairs(game.Players:GetPlayers()) do name = v.Name check = game.Workspace:FindFirstChild(name) if check then checkHumanoid = check:FindFirstChild("Humanoid") end if checkHumanoid then sword = game.Lighting.Sword:Clone() sword.Parent = v.Backpack v.Character:MoveTo(Spawns[i].Position) end end for i = 3, 1, -1 do h.Text = "Game begins in: " ..i Wait(1) end for i = 30, 1, -1 do h.Text = "Time Left: " ..i Wait(1) end h.Text = "Game Ended" Wait(3) gameChosenClone:Destroy() else h.Text = "Need more than 1 player to start :/" end Wait(1) end

    of     1