Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a projectile not be "rigid" and have drop?

Asked by 4 years ago
Edited 4 years ago

So I am trying to make a grenade, I know I need to use BodyMovers to move the grenade relative to the LookVector of the player's torso.

I used a bodyvelocity and it somewhat worked, my problem is that I just need it to not be "rigid" (not just flying in one direction) and have drop.

I looked at the wiki and read each of the bodymovers and I don't understand a thing from it.

If you want this is my script for applying force overtime.

local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.Parent = Handle
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

for i = 20, 1, -1 do
    bodyVelocity.Velocity = (Torso.CFrame.LookVector * i)
    wait(0.3)
    print("Fired grenade at the speed of "..i)
end

Thanks for viewing this!

Answer this question