|
| 28 Apr 2015 01:44 PM |
Ill give you 300 rap if you can help me and it works :3 Basically all i need you to do is end the Round when there is 1 player alive on the map.
here's my script!
while true do if game.Players.NumPlayers > 1 then for t = 20, 1, -1 do h.Text = "Next Round Starts In "..t wait(1) end h.Text = "Picking Map.." wait(2.5) rg = math.random(1, #Maps) gc = Maps[rg] h.Text = "The Chosen Map is "..gc.Name wait(2.5) gcc = gc:Clone() gcc.Parent = game.workspace spawns = gcc.spawn: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") if checkHumanoid then h.Text = "Teleporting All Players.." wait(1) check:MoveTo(spawns[i].Position) end end end wait(3) for i, v in pairs(game.Players:GetPlayers())do backpack = v:WaitForChild("Backpack") swordToClone = game.ServerStorage.Sword:Clone() swordToClone.Parent = backpack end for t = 45, 1, -1 do h.Text = "Time Left "..t wait(1) end h.Text = "Round Over" wait(1.5) h.Text = "Returning To Lobby" wait(1.5) for i,v in pairs(game.Players:GetPlayers()) do name = v.Name check = game.Workspace:FindFirstChild(name) if check then checkHumanoid = check:FindFirstChild("Humanoid") if checkHumanoid then h.Text = "Teleporting All Players.." wait(1) check:MoveTo(doo[i].Position) for _,v in ipairs(game.Players:GetChildren()) do v.Character.Humanoid:UnequipTools() v.Backpack:ClearAllChildren() end
end end end gcc:Destroy() else h.Text = "There Needs To Be 2 Players To Start" end wait(1) end
|
|
|
| Report Abuse |
|
|
| 28 Apr 2015 03:18 PM |
| Give me your valk and I'll fix it. |
|
|
| Report Abuse |
|
|
| 28 Apr 2015 03:55 PM |
Can't ive had this thing forever i give it to no one.
|
|
|
| Report Abuse |
|