[CLOSED] How to Drag Launch an Object

I’m trying to make an object that you drag back, then launch it upon release, like a slingshot, but also have a linecast that shows the pullback line. I’ve looked at the Unity live training session here (starts at about 35:15), but I’m having a hard time converting the C# code to Javascript, so could anyone help decipher it?

I am slowly working at it myself, but is tough as I know only the basics of C#.

Any help would be greatly appreciated!

– Chris

EDIT: I got it working finally!

Still more work to do to actually test it, but I got the code to where it’s not giving me errors anymore, so progress!