of     1   

Brenzimex
#149919169Monday, November 17, 2014 1:33 AM GMT

I am using a script to teleport players out of the lobby, but it is not working. Can some please help? Also, where am I supposed to insert this script in order for it to work? This is the script: local oldMessage = "" local minPlayers = 2 function teleportAllPlayers() local target = CFrame.new(workspace.TeleportTarget.Position) for i, player in ipairs(game.Players:GetChildren()) do player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0) player.Playing.Value = 1 --add an offset of 5 for each character end end function message(message) if oldMessage ~= message then oldMessage = message print(message) end end function playersCurrentlyPlaying() for i, player in ipairs(game.Players:GetChildren()) do if player.Playing.Value == 1 then return true end end return false end game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() player.Playing.Value = 0 end) end) local playing = Instance.new("IntValue", player) playing.Value = 0 playing.Name = "Playing" end) while(true) do wait(10) if #game.Players:getPlayers() >= minPlayers then if playersCurrentlyPlaying() then message("Waiting for the current game to end...") else message("The game is about to begin. Teleporting...") wait(4) teleportAllPlayers() end else message("Waiting for more players...") end end
Brenzimex
#149919505Monday, November 17, 2014 1:37 AM GMT

I got this script from the Roblox wiki. I don't understand why it is not working. I even inserted a part titled TeleportTarget.
tom_nook
#149919576Monday, November 17, 2014 1:38 AM GMT

There's a subforum for this
Tunicus
#149919659Monday, November 17, 2014 1:39 AM GMT

The only issue I see is you are teleporting the torso instead of the humanoidrootpart.
GodShowsTheWay
#149919675Monday, November 17, 2014 1:39 AM GMT

^^^
BinaryGreen
#149919690Monday, November 17, 2014 1:40 AM GMT

Wrong forum, go to the game development one, slick shoes. I'm just laughing sitting in my low budget black office chair.
Brenzimex
#149920179Monday, November 17, 2014 1:47 AM GMT

It's still not working. Where do I insert this script?

    of     1