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.
1 | plr.Character.HumanoidRootPart.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(plr.Character.Head.CFrame.lookVector * 15 ) |
try this:
1 | plr.Character.HumanoidRootPart.CFrame = CFrame.new(plr.Character.HumanoidRootPart.Position + plr.Character.HumanoidRootPart.CFrame.LookVector * 15 ) |