for i = 1,10 do
	local player = game.Players.Player1
	player.Character.Head.Position = player.Character.Head.Position:lerp(Vector3.new(game.Workspace.RockPart.Position.X, player.Character.Head.Position.Y, game.Workspace.RockPart.Position.Z), i)
	wait()
end

When this code is ran in the command bar, all it does is teleport my head to the 'game.Workspace.RockPart' and I die. I am testing this script to figure out how to CFrame my character for a cutscene. Any idea on how to fix this?

1 comment

0

You're separating the welds/motors by using position, which breaks your character neck, which kills you. Use CFrame:lerp().