player.Character.Torso.CFrame = Vector3.new(script.Parent.RunnerPiece.Position) + Vector3.new(0, i * 5, 0)
This script is supposed to teleport each player to a certain block's position, but it's not working. Can someone help me out with this?
player.Character.Torso.CFrame = Vector3.new(script.Parent.RunnerPiece.Position) + Vector3.new(0, i * 5, 0)
This script is supposed to teleport each player to a certain block's position, but it's not working. Can someone help me out with this?
You can use MoveTo on the Character.
player.Character:MoveTo(script.Parent.RunnerPiece.Position + Vector3.new(0, i * 5, 0))
Here is a function that might help you ;)
local function MovePlayerToPart(Player,Part)
local Character = Player.Character or Player.CharacterAdded:wait()
Character:MoveTo(Part)
end
For a faster in my oppinion teleport try this.
player.Character.Torso.CFrame = CFrame.new(script.Parent.RunnerPiece.Position(0, i * 5, 0)
)
This discussion is preserved as it was. New answers, comments, and votes are closed.