|
| 01 Sep 2015 02:21 PM |
So I've been on my game for a while and there is a lobby and some maps, and I want whenever a new map starts and stuff the players get teleported on to the map but I dont know how, help?
P.S I dont want to use bricks or guis since it's a 1 life thing |
|
|
| Report Abuse |
|
|
UpToxic
|
  |
| Joined: 06 Sep 2014 |
| Total Posts: 9 |
|
|
| 01 Sep 2015 03:28 PM |
Whenever this is called in a script, it will teleport all players to a location.
target = CFrame.new(0, 50, 0) --Location of teleportation for i, player in ipairs(game.Players:GetChildren()) do --Getting the players if player.Character and player.Character:FindFirstChild("Torso") then --Making sure they are a player^ player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) --Teleports the, end end |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2015 05:54 PM |
Thanks, but I have a few more questions since I have no experience with scripts
1. Since it's like a free for all will they all teleport on top of eachother and if so how do we make it so they are spread out?
2. I'm an idiot but how do we add a timer?
3. Say I got a map changing script, and once the map loads I want the players to be teleported down how could I do that |
|
|
| Report Abuse |
|
|
gooey333
|
  |
| Joined: 24 Mar 2013 |
| Total Posts: 1208 |
|
|
| 01 Sep 2015 05:56 PM |
| How do I make, say, a game? |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2015 08:07 PM |
| Sorry if I asked for too much. |
|
|
| Report Abuse |
|
|