Currently I am making a tomato and potato that you can throw at other players. I can’t figure out the settings I need to create the effect to be similar to a normal object being thrown.
I have attempted to use a Vector Force and a Linear Velocity force. I need the force applied to also be relative to the part. Anybody that understands the physics and could lend a hand would be much appreciated.
local vector3force = object.Name == "Tomato" and Vector3.new(0, 1000, 0) or Vector3.new(0, -500, 0)
--// The line above sets the force different for the tomato and potato
--// Tomato has a force of (0, 1000, 0) and potato is (0, -500, 0)
local linearVelocity = Instance.new("LinearVelocity")
local attachment = Instance.new("Attachment")
linearVelocity.Parent = object.PrimaryPart
linearVelocity.Attachment0 = attachment
linearVelocity.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
attachment.Parent = object.PrimaryPart
linearVelocity.VectorVelocity = vector3force
task.wait(1)
linearVelocity:Destroy()