- What do you want to achieve? At the beginning of a race the players will be teleported in line (each in a specific part) avoiding that two players are teleported in the same part.

each player will be teleported on a spot (there are invisible parts)
i did this script using
math.random()
, but two players can be teleported to the same part
btw it is a localscript
local randomnumber = math.random(1,4) --PUT TO 1,4 /!/
if randomnumber == 1 then
game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(clonedspain:FindFirstChild("tpblock1").Position)
elseif randomnumber == 2 then
game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(clonedspain:FindFirstChild("tpblock2").Position)
elseif randomnumber == 3 then
game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(clonedspain:FindFirstChild("tpblock3").Position)
elseif randomnumber == 4 then
game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(clonedspain:FindFirstChild("tpblock4").Position)
--etc.etc.etc.
end