This is a script to rotate an object by changing the z-coordinate constantly with every frame. It calls upon the object's rotation property, and we just set it to change with the time.
This above is the code to give an object torque on any of the 3 axis. In the editor I can change which axis to give a bit of torque to, and so this allows objects to interact with each other physically.
The code above is a fix to how the player would rotate with the object they are standing on. It lets the player become the "child" of the spinning plane, allowing it to have the same rotation.
The code above is a teleport script. When the player stands on a little platform, they are teleported to another predetermined place. It works by instantly changing the player position to the designated place's position.
The code above orientates the player to the ground. Every object within the simulation has a x,y,z rotation scale, and so it just matches the player to those numbers. Granted, this was borrowed from the internet, with some minor edits.
The code above represents an elevator. For each frame that the gameObject is more than 0.01 units away from the destination, the object shall move upwards.
The code above is how the cylinder model is able to act like a real hose.