Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Can You Choose Who is Teleported and Who Isn't? [Solved]

target = CFrame.new(0, 50, 0) --could be near a brick or in a new area
for i, player in ipairs(game.Players:GetChildren()) do
   --Make sure the character exists and its torso exists
   if player.Character and player.Character:FindFirstChild("Torso") then
       --add an offset of 5 for each character
      player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
   end
end

This Script Will Teleport All The Players But How Could I Change It So That Lets Say I Didnt Want To Teleport BuilderMan and I Wanted Him To Stay In His Place how could i do it?

1 answer

✓ Accepted answer

In your If statement (line 4), just add and player.Name ~= "Builderman" just before the then

2 comments

0

Im new to scripting thanks for the help

0

No Problemo!

This discussion is preserved as it was. New answers, comments, and votes are closed.