Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When Players Join, They Teleport To Random Part By Creating Table?

Asked by 5 years ago
Edited 5 years ago

So when players Join Server They Get Teleported To Random Part, I wanna do this by creating a Table, Please Someone Explain Every Line, Thank You!

game.Players.PlayerAdded:Connect(function(plr)
    randomTele = {'TELE','TELE2','TELE3'}
    for i in pairs(randomTele, math.random)
    humanoid.CFrame = 145, 20, 05
    end
end)

Answer this question