script to make an object stay still

does anyone know a script which when atached to an object makes that object unable to be pushed around but still colides with other objects?

You dont need a script ot do that unless you want to turn that ability on an off. It will only be effectd by physics if you have a rigidbody on the gameobject. and even then there are ways to control that rigidbody to not be pushed also. If the mass and drag are to high the rigidbody cant be moved unless the moving force is powerful enough. Or you can set the rigidbody to kinematic(means only parents or scripts can move it not physics). OFC you dont have to have a rigidbody on the game object at all(If you want it to be static)just use one of the other kinds of colliders, and poof a gameobject that you will collide with but wont move. :smile: