Hi, I’m really new to scripting and I’m trying to make a part move forward relative to what direction the player is facing. It works on all axis’s but I need the CFrame used of the LowerTorso to ignore the Y axis.
here’s the code that’s important:
Object.CFrame = game.Players.LocalPlayer.Character.LowerTorso.CFrame --code from function used for creating the moving part instance
local ForwardForce = Instance.new("VectorForce")
ForwardForce.Parent = workspace:FindFirstChild("Moving Part")
ForwardForce.RelativeTo = Enum.ActuatorRelativeTo.World
ForwardForce.ApplyAtCenterOfMass = true
ForwardForce.Force = workspace:FindFirstChild("Moving Part").CFrame.LookVector * 100
Thanks!