I want to make a tool that creates a part that moves in the direction the person using the tool is facing.
The problem is, I don’t know how to script how the part moves(in this case, the direction).
I tried using the CFrame + a Vector3, but The direction is constant regardless of the orientation of HumanoidRootPart.
I also tried to use a Body Mover, but that doesn’t work because the part could go off course. I am trying to make the part Anchored, which pushes people around.
The part is in ServerStorage, and I clone it.
Could anyone help? thanks!
Example code here
local part = game.ServerStorage.Part
part.Parent = Workspace
part.CFrame = tool.Parent.Parent.Character.PrimaryPart
--How to set the orientation?