"Target" is the object the player throws, and "tool" is the thing the player holds.
local Mass = Target:GetMass() local Angle = GetAngle:InvokeClient(Player) local BodyForce = Instance.new("BodyForce") local VectorDirection = Tool.Glower.Position - Target.Position BodyForce.Force = (VectorDirection.Unit * (-2000 - (Mass * 100))) + Vector3.new(0, 1000 + (Angle * -1000), 0)
I'm trying to throw an object a specific distance. The higher the angle of the tool, the further the object, or "Target," should get thrown. The lower the mass, the further the object, or "Target," should get thrown.
This does throw the object but low mass objects get thrown very far away and with a very high arch. Any suggestions on what I can do to make this work more efficiently and consistently, taking into consideration the mass of the object and the angle of the throw?