Creating a script that allows the player to throw when they pickup the object

Hello, I am need of assistance. I am trying to create a script whereas the player picks up an object with “T” then “throws” the object on release. I do have a drag and drop when the player picks up an object and releases it drops. I would like to input throw object into my drag and drop script.

Here is what I started off with:

Hi @Encrypted101 and welcome! It looks like you used a script from one of my example projects. The change you made appears to be incorrect. I’ll make another example for you later today.

1 Like

@Albertos, Thanks!

I’ve extended the example project with a throw function.