Hey everyone, so recently i've been trying to create a beam, that starts from the player and goes towards the mouse. I want the player to also be able to rotate towards the mouse as the beam is being fired.
Here's my current progress:
https://photos.app.goo.gl/46YabKKzf2FX9FDR8
The problem is that whenever I try to roate the player, the player glitches out,
I just need a push in the right direction on how rotate the player the correct way. So far, the script creates the beam and updates the beam's CFrame.

4 comments
Where is this put? What type of script is this?
LocalScript if you wan't to test if it works you can place it in StarterGui
Right, I read someone suggest using Body Gyro's, the only thing is that sometimes it would fling the character when the character is looking up. Any suggestions on how to fix that?
Anchor the humanoid root part to fix it