The attach command that i used wasn't working properly. Even when packets.auto init was set to true in the config.yml file. Do i have to restart the server after making the change in the config file? Here is the code:
- spawn armor_stand <player.location> save:test
- attach <entry[test].spawned_entity> to:<player> offset:1,0,0 relative