How can I make a barrier follow the player?

here, if i understand what you’re asking for, maybe this can help?
instead of making it a skateboard however, use the barrier, or the thing you want to follow the player.
correct me if im wrong on what you needed.