first: I’m a german graphic design student, and I’m working on my first game. So scripting is relative new to me.
The plan where I need some help: the are small cubes lying on the floor. When the player walks through the cubes, they stick to the player-model. Like if they were magnetic or burdocks.
Make the cubes to face the player (or a point in the player body) using transform.LookAt() and, after, transform.Translate(Vector3.forward * Time.deltaTime). Only activates this (the magnetism) when the player is near, check using Vector3.Distance().
When the player is too near I suggest you to make the object stop moving and make it a parent of the player (Something like transform.parent = player.transform).