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

Why is the character not moving 15 studs in the looking direction?

So I'm trying to make the character move 15 studs in the direction the head is looking at. Instead it just moves one certain direction.

plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame * 	CFrame.new(plr.Character.Head.CFrame.lookVector * 15)

1 answer

✓ Accepted answer

try this:

plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.Position + plr.Character.HumanoidRootPart.CFrame.LookVector * 15)

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