What I’m creating is Lightsabers, but for the life of me I cannot seem to get the crystal (the red beam) to stay in the same position as I resize it. I need the beam to only go up in one direction, whilst maintaining it’s position ontop of the part in the image below.
I want the beam to stay ontop of this part
But no matter what I have tried the beam always has a weird offset, for example;
You may want to reference The HumanoidRootPart.CFrame.LookVector. That can help get your calculations much more accurately, becase I believe Vector3 is not relative to the position and direction the instance is facing. Also, maybe use a weld or weld constraint to keep it in place.
I’ve tried CFrame too, but because of the constraint behavior it moves my entire character, I believe position is the only way forward with this, thanks for the help though!
Only reason I am setting the position is because if I change the size of the laser it origins on the center, unless there is a way I can prevent that? In which case I wouldn’t need to change the position at all