Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I CFrame my character correctly for a cutscene?

Asked by 7 years ago
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?

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

Answer this question