You can create interactions before you even start writing code using the Scripts tab. This will let you add pre-made scripts to entities (like the crab) and watch what it does.
- Click the Scripts tab in the object panel.
- Use the scroll wheel on your mouse, or click and drag any of the scripts to the left to scroll through all the options.
- Find the Pet script, and click and drag it onto the crab. The crab should run up to you as soon as it gets the script.
And just like that, you have a new floating crab friend that follows you around. Click the Camera icon to get out of bird’s eye view and move your player around to see the crab following you!