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 » Scripting Helpers
Home Search
 

Re: timer

Previous Thread :: Next Thread 
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 05:49 AM
hello guys, could one of u add a part of a script to this which would pick people every 30 secs, thx here is the script

players = game.Players:getPlayers()
if #players >= 2 then
pickedp1 = players[math.random(1,players)]
pickedp2 = players[math.random(1,players)]
while pickedp1.Name == pickedp2 do
pickedp2 = players[math.random(1,players)]
end
game.Players:findFirstChild(pickedp1.Name).Character:MoveTo(-47, 35.4, -62.2)--ENTER LOCATION
game.Players:findFirstChild(pickedp2.Name).Character:MoveTo(-47, 35.4, -62.2)--ENTER LOCATION
end
Report Abuse
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 05:51 AM
bump
Report Abuse
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 05:53 AM
btw after 30 secs i want the script to teleport the first 2 players back to a position and it would choose another 2 ect.....
Report Abuse
KiwiMeister is not online. KiwiMeister
Joined: 18 Feb 2010
Total Posts: 1464
22 Dec 2013 05:55 AM
:GetPlayers()

Capitals.
Report Abuse
KiwiMeister is not online. KiwiMeister
Joined: 18 Feb 2010
Total Posts: 1464
22 Dec 2013 05:56 AM
math.random(1,#players)

# needed?
Report Abuse
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 05:57 AM
thx but someone please help
Report Abuse
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 05:59 AM
bump
Report Abuse
KiwiMeister is not online. KiwiMeister
Joined: 18 Feb 2010
Total Posts: 1464
22 Dec 2013 05:59 AM
...

Did you even read my post? Try it maybe?
We help you and not give scripts.
Report Abuse
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 06:01 AM
so for all math.random(1,players)]
do i need a # ?
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
22 Dec 2013 06:02 AM
players = game.Players:GetPlayers()
if #players >= 2 then
pickedp1 = players[math.random(1,#players)]
pickedp2 = players[math.random(1,#players)]
repeat
pickedp2 = players[math.random(1,#players)]
until pickedp2.Name ~= pickedp1.Name
pickedp1.Character:MoveTo(-47, 35.4, -62.2)
pickedp2.Character:MoveTo(-47, 35.4, -62.2)
end
Report Abuse
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 06:03 AM
change the whole script to dat ?
Report Abuse
TexasOp6 is not online. TexasOp6
Joined: 25 Jul 2013
Total Posts: 162
22 Dec 2013 06:04 AM
btw will dis teleport the players back to there original position
Report Abuse
KiwiMeister is not online. KiwiMeister
Joined: 18 Feb 2010
Total Posts: 1464
22 Dec 2013 06:05 AM
Depends if you added it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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