Im trying to use humanoidRootPart.CFrame.LookVector on bodyPosition to move rootpart forward and up, how can i do this?
i tried force.Position = dummy.HumanoidRootPart.Position + (dummy.HumanoidRootPart.CFrame.LookVector + Vector3.new(0,20,20)) but its not working
Try
local root = dummy.HumanoidRootPart
force.Position = root.Position + 20 * root.CFrame.LookVector
See BodyPosition for more properties you can adjust.
Edit : As mentioned by @LazyBeansZZZ, it is technically deprecated, but is still fine to use. The constraint system requires you to add attachments and the way some of them work isn’t as intuitive as I’d like.
1 Like
BodyPosition is now deprecated, Its highly recommended that you use AllignPosition
And contrary to what the name suggests, its used to bring another part to a position. You could do it which CFrames, But the character will die.
Instead you could make a cutom character.
it works but he is going only forward, how can i make him go forward and up?
Edit: nvm i solved it thank u