local pep = math.random()
if pep > 0.5 then
player.Character.HumanoidRootPart.CFrame = workspace.Tug1.CFrame
else
player.Character.HumanoidRootPart.CFrame = workspace.Tug2.CFrame
end
do u have any idea on how to teleport players into split like this
local players = game.Players:GetChildren()
for i = 1,#players do
if players[i].Character ~= nil then
players[i].Character.Parent = game.Workspace.Tug1 or game.Workspace.Tug2 --- this one
end
end
local teleporters = math.random(1,2)
if teleporters == 1 then
-- player teleport to point 1
print (teleporters)
end
if teleporters == 2 then
-- player teleport to point 2
print (teleporters)
end
for i, v in pairs(game.Players:GetChildren()) do
if v then
local characters = v.Character
characters.Parent = game.Workspace.Tug1 or game.Workspace.Tug2
end
end
local val = math.random(1,2)
if val == 1 then
for i, v in pairs(game.Players:GetChildren()) do
if v then
local characters = v.Character
characters.Parent = game.Workspace.Tug1
end
end
elseif val == 2 then
for i, v in pairs(game.Players:GetChildren()) do
if v then
local characters = v.Character
characters.Parent = game.Workspace.Tug2
end
end
end
That’s not called teleporting that’s called moving the character model, I’m pretty you can’t/aren’t supposed to move the players character model.
If you want to group different players for different things, create tables and put the player instance or character instance in the tables, you can even use ObjectValues if you want.
There is no need to be moving around the character model.
local Folder = ""---------- the place you want be player in
local Value = Instance.new("ObjectValue",Folder )
Value.Value = Player
Value.Name = Player.Name
ill make it clear I want the Player move into 2 folder like
there is 2 player the one player is going to teleport into 1 folder and the other player is going to teleport into 2 folder