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: Help with random tele.

Previous Thread :: Next Thread 
epicname3000 is not online. epicname3000
Joined: 24 Jun 2011
Total Posts: 444
27 Mar 2015 03:00 PM
I almost figured out how I can make 8 people teleport to different places (each different island for my new game)

I noticed I might have to make a table and let the table choose who to send where but how do I make the teleporting thing?

playersTP = {1, 2, 3, 4, 5, 6, 7, 8}

how do i make the script randomly choose a number in this table and teleport them to a certin block?
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
27 Mar 2015 03:01 PM
local random_pick = playersTP[math.random(1,#playersTP)]
Report Abuse
epicname3000 is not online. epicname3000
Joined: 24 Jun 2011
Total Posts: 444
27 Mar 2015 03:02 PM
ok now how do I script the blocks position in?
Report Abuse
FunkiAndrew is not online. FunkiAndrew
Joined: 01 Dec 2013
Total Posts: 2318
27 Mar 2015 03:02 PM
tps = game[teleporter locations]:GetChildren()
for _,player in next, game.Players:GetChildren() do
player.Character.Torso.CFrame = CFrame.new(tps[math.random(#tps)].CFrame + Vector3.new(0,10,0))
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