|
| 12 Nov 2017 05:46 AM |
| Sup, as it said as the title i have this question. I am making a sort of minigame/deathmatch/comedy game. I have made almost all of the game, but I am trying to script a system to teleport players from lobby to map. It might seem easy but I can't seem to do it. If anyone has any ideas or script or tutorials that aren't negative please say. Cheers! |
|
|
| Report Abuse |
|
|
Dankvisky
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 5430 |
|
|
| 12 Nov 2017 06:06 AM |
for i,v in pairs(players) do if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then v.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(your desired position) end end
|
|
|
| Report Abuse |
|
|
|
| 12 Nov 2017 06:52 AM |
| I forgot to mention there are teams Yellow, Red and neutral (lobby group) Example: Two players join lobby and they start out on neutral then a game starts and they teleport to the other team spawns. |
|
|
| Report Abuse |
|
|
|
| 12 Nov 2017 07:05 AM |
change player to what ever defines your player.
player:LoadCharacter()
|
|
|
| Report Abuse |
|
|
|
| 12 Nov 2017 10:42 AM |
| It still doesn't work......... |
|
|
| Report Abuse |
|
|