I'm trying to create a lunge/dodge through a VectorForce. I've already written a script that places a VectorForce + Attachment into the player's LowerTorso Whenever I alter the axis(es?) on the attachment, it gives me this error: "X cannot be assigned to". My guess is that it means that you can't alter the attachment through a script. Is there any other way one could go about altering the axis?
local playerV = Instance.new "VectorForce" -- Creating the vectorForce
local playerA = Instance.new "Attachment"
playerV.Parent = Ltorso -- Parenting the vectorForce
playerA.Parent = Ltorso
playerV.Attachment0 = playerA -- Attributes for the vectorForce
playerA.Axis.X = 0 -- Attributes for the attachment
playerA.Axis.Y = 0
playerA.Axis.Z = -1
playerA.SecondaryAxis.X = 0
playerA.SecondaryAxis.Y = 1
playerA.SecondaryAxis.Z = 0
