With that code above, I am trying to spawn an axis avatar on top of an allied player when they touch said trigger. However, when I touch the trigger, the func_beam stretches from where I first spawned to where I am currently moving. Can someone have a look at that code and let me know what I am doing wrong. I want it to stay on top of my head but it won't. Check the picture to see what I am talking about.
I didn't test it, but I used Mefys CTF mod as a guide. I do know that the way you were setting the origin was part of your problem. $player.origin would be undefined in MP.
That code works good. If only the avatar's position was updated when a player crouched like a real avatar does. This beam looks like it has been attached externally, especially when I move. Even with the .001 wait, it still lags behind a player when they run.