generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: first person who can help ill give 300 rap :)!

Previous Thread :: Next Thread 
JacobTheCanadian is not online. JacobTheCanadian
Joined: 10 Apr 2009
Total Posts: 139
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
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
28 Apr 2015 03:18 PM
Give me your valk and I'll fix it.
Report Abuse
JacobTheCanadian is not online. JacobTheCanadian
Joined: 10 Apr 2009
Total Posts: 139
28 Apr 2015 03:55 PM
Can't ive had this thing forever i give it to no one.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image