Hey, guys so I was trying to remake my 3DMG as seen here: https://gyazo.com/6d3d00edceabac121999b57af29ee4ae
but I wanted to use the new BodyMovers instead since the old ones are no longer supported, but for some reason the force isn’t being applied to the Character.
This is the code within my Constructor function, I parent the force to the BodyFrontAttachment instead of having to make my own attachment
self.Force = Instance.new("VectorForce", self.Character.UpperTorso.BodyFrontAttachment)
self.Gyro = Instance.new("BodyGyro", self.RootPart)
self.Magnitude = 90
self.Mass = 0
for i,v in pairs(self.Character:GetDescendants()) do
if v:IsA("BasePart") then
self.Mass = self.Mass + v:GetMass()
end
end
self.Force.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
self.Force.Force = Vector3.new()
self.Force.ApplyAtCenterOfMass = true
I then detect when the player is pressing E and call this method
--Vector = (Hook.Position - Gear.RootPart.Position).unit
function module:SetForce(Vector)
self.Force.Force = Vector * self.Magnitude * self.Mass
end
I read the wiki, and the force only needs direction and magnitude but it’s not working:
https://gyazo.com/481c9174441a64724e14d60dbeb37e4b
Any help is much appreciated!