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: Need help with this script

Previous Thread :: Next Thread 
fdfxd is not online. 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 is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
06 Mar 2015 11:22 AM
You have no PlayerAdded connection or polling
Report Abuse
fdfxd is not online. fdfxd
Joined: 02 Apr 2010
Total Posts: 18382
06 Mar 2015 11:35 AM
Polling?


Report Abuse
eLunate is not online. 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
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