Edit: My script was actually correct. I just had to adjust the number.
I have a script for creating campfires. However, I only want the "canBuild" boolean to be true if the character is on the ground. This is because at the moment, if you stand on top of a campfire and you make another campfire, the new campfire will be floating in the air. If you continue like this, you can make a staircase of campfires.
So I tried something like this:
However, while playing the game, I notice that the Transform Positions don't update as you move around.
Any help is appreciated.