self made scripts don't work

im trying to make a physics drag and drop thing. when i made the drag script it doesn’t work :frowning: not even with any other script!

We need more than just an “it doesn’t work”. At the very least we need to see the code (in code tags) and any error messages (not just the CS number).

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

This is the bare minimum of information to report:

  • what you want
  • what you tried
  • what you expected to happen
  • what actually happened, log output, variable values, and especially any errors you see
    - links to documentation you used to cross-check your work (CRITICAL!!!)

Don’t TALK about code without posting it. Don’t RETYPE code. Copy/paste and post code properly. ONLY post the relevant code, and then refer to it in your discussion.

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

You might find this approach helpful: ask yourself again and again, “Can I…?”

Imphenzia: How Did I Learn To Make Games: