Issue
I’m currently making a push and pull tool, that works under the same tool, and can be interchangable… however my Pull is constantly launching the character higher in the air than the push… when they’re supposed to be the exact same… what could I do to fix this issue? Here is a link, showing the issue.
Script
Push_Force = 20, --[[How far the receiver goes, forwards or backwards.]]
Lift_Force = 15, --[[How high the receiver goes up in the air.]]
local MCDirection
if Tool.Parent:FindFirstChild("UpperTorso") then
MCDirection = Tool.Parent.UpperTorso.CFrame.lookVector
else
MCDirection = Tool.Parent.Torso.CFrame.lookVector
end
if Connections[Item].Variables.Push then --[[Supposed to launch character up in the air, ahead of player]]
AirForce.VectorVelocity = (MCDirection * Style.Push_Force) + Vector3.new(0,Style.Lift_Force,0)
warn((MCDirection*Style.Push_Force))
elseif Connections[Item].Variables.Pull then --[[Supposed to launch character up in the air, behind of player]]
warn((MCDirection * -Style.Push_Force))
AirForce.VectorVelocity = (MCDirection * -Style.Push_Force) + Vector3.new(0,Style.Lift_Force,0)
end