Cant get rigidbody to work

I am making a game for a class which and what i decided on is similar a visual novel or choose your own adventure book.
To get it to work i needed buttons which could change a variable and I couldn’t get the button objects to work so i made my own. I used the get key down mouse button and a compare tag on two objects to make two buttons, but no matter what I do the buttons refuses to work with the main issue being that the rigidbodys seem to not be working correctly. any help would be greatly appreciated.

y
sorry the image is zoomed out it only allows one image for new posters

Buttons and story games really have nothing to do with Rigidbodies, which are for physics systems use. Glancing above I’m gonna guess you mistyped a lot of stuff from a tutorial, or the tutorial was for buttons that are physically in the room and hooked up to some other interactivity detection system (perhaps VR?), not standard 2D UI buttons.

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 actual Unity3D documentation you used to cross-check your work (CRITICAL!!!)

The purpose of YOU providing links is to make our job easier, while simultaneously showing us that you actually put effort into the process. If you haven’t put effort into finding the documentation, why should we bother putting effort into replying?

If you post code, only post the relevant code and always use the format button above. Do not post photographs of code.

I like this one-step-at-a-time technique:

Imphenzia: How Did I Learn To Make Games: