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: Teleport All Player to Different Positions?

Previous Thread :: Next Thread 
felipeblox10 is not online. felipeblox10
Joined: 09 Oct 2009
Total Posts: 276
29 Mar 2014 04:57 PM
Plz Help
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
29 Mar 2014 05:02 PM
This is script helpers. If you want help fixed a script, this is the forum. Other than that, I cannot help you with "plz help".

ℱoggedOut ~
Report Abuse
felipeblox10 is not online. felipeblox10
Joined: 09 Oct 2009
Total Posts: 276
29 Mar 2014 05:04 PM
Okey
Can work This?

Player = game.Players:FindFirstChild(v.Value)
if v.Name == "Player0" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
elseif v.Name == "Player1" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
elseif v.Name == "Player2" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
elseif v.Name == "Player3" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
elseif v.Name == "Player4" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
elseif v.Name == "Player5" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
elseif v.Name == "Player6" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
elseif v.Name == "Player7" then
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
29 Mar 2014 05:06 PM
If the Player's Name was "Player0", then yes. Lol But if you want Individual, then here:

for _, player in pairs(game.Players:GetPlayers()) do
Player.Character:MoveTo(Vector3.new(-500.5, 82.4, 300.5))
end

That will get all the players ^

ℱoggedOut ~
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
29 Mar 2014 05:06 PM

Pos1 = Vector3.new(#, #, #)
Pos2 = Vector3.new(#, #, #)
Pos3 = Vector3.new(#, #, #)
Pos4 = Vector3.new(#, #, #)
Pos5 = Vector3.new(#, #, #)
--Repeat until you have the same amount as max players
for i = 1,#(game.Players:GetPlayers) do
game.Players:GetPlayers()[i].Character:MoveTo(Pos[i])
end
Report Abuse
PredationX is not online. PredationX
Joined: 09 Sep 2012
Total Posts: 1594
29 Mar 2014 05:42 PM


a= math.random(1,5)
b= math.random(1,5)
c= math.random(1,5)

p= game.Players:GetChildren()
for i= 1, #p do
p[i].Character.Torso.CFrame = CFrame.new(a,b,c)
end
Report Abuse
PredationX is not online. PredationX
Joined: 09 Sep 2012
Total Posts: 1594
29 Mar 2014 05:43 PM
Make a math.random loop with that.
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
29 Mar 2014 05:47 PM
Oh, different positions, Ok Ok sorry didn't see that. Here you go:


x = math.random(-500, 500)
z = math.random(300, -300)
y = math.random(82.4, 122.4)

for _, player in pairs(game.Players:GetPlayers()) do
Player.Character:MoveTo(Vector3.new(x, y, z))
end



ℱoggedOut ~
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
29 Mar 2014 05:54 PM
maxDist = 10
starterPos = Vector3.new(0, 0, 0)

for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(starterPos + Vector3.new(math.random(-maxDist, maxDist), 0, math.random(-maxDist, maxDist)))
end
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
29 Mar 2014 06:05 PM
You're welcome.
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