i'm creating a game like rimworld, where you can tell characters to collect certain items, like go to a tree -> destroy it -> collect wood, but i've gotten stuck on a problem, i want the script to make the character go to the tree if i press J and if i press J again, he goes back to his original point (i'm making the collect wood feature later)
i've set this up but i'm not quite sure what's wrong with it, whenever i press the J key, it just makes the character circle around for a split second then stay still. the placeholder "wood" text to tell me if it's activated or not doesn't change either.
if someone could correct my script that'd be nice :)