fdfxd
|
  |
| Joined: 02 Apr 2010 |
| Total Posts: 18382 |
|
|
| 06 Mar 2015 11:02 AM |
--Made by Cluster studios, FDFXD --Assisted by Seranok and Voliax --Let's hope this works...
target = game.Workspace.Spawns.SPAWNA target2 = game.Workspace.Spawns.SPAWNB returning = game.Workspace.Lobby.SpawnLocation
function tele() local players = game.Players:GetPlayers() local player1 = table.remove(players, math.random(#players)) local player2 = players[math.random(#players)]
if player1.Character:FindFirstChild("Torso") then player1.Character.Torso.CFrame = target end if player2.Character:FindFirstChild("Torso") then player2.Character.Torso.CFrame = target2
end end
function roundended() local players = game.Players:GetPlayers() local player1 = table.remove(players, math.random(#players)) local player2 = players[math.random(#players)]
if player1.Character:FindFirstChild("Torso") then player1.Character.Torso.CFrame = returning end if player2.Character:FindFirstChild("Torso") then player2.Character.Torso.CFrame = returning
end end
function round() -- This part of the script tells the player to get more players -Fd local Raincorn = game.Players:GetChildren() if #Raincorn <= 1 then local Normandy = Instance.new("Message",game.Workspace) Normandy.Text = "Get more players to start the game" wait(3) Normandy:Destroy() else tele() game.Workspace.CutsceneScript.Disabled = false end end
game.Workspace.Lobby.Screen.END.OnServerEvent:connect(roundended)
game.Players.PlayerAdded:connect(round)
Script works, output says nothing but, when 2 players come in nothing happens |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 06 Mar 2015 11:22 AM |
| You have no PlayerAdded connection or polling |
|
|
| Report Abuse |
|
|
fdfxd
|
  |
| Joined: 02 Apr 2010 |
| Total Posts: 18382 |
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 06 Mar 2015 11:37 AM |
| Wow my phone's weird formatting caused me to miss the connection line right at the end |
|
|
| Report Abuse |
|
|