So I have an NPC Chat System thing so I make the camera scriptable and then tween it the positon i want it to be add problem is Im trying to make tween it to the head and y and z are working fine but I cant get x to function correctly
This will position the camera in front of your npcs head. All I did was get the position of the head + the lookvector, then make the focus the heads position.
This will position the dummy to the left of the camera, so your frame can display. You can increase the lookvector to move the dummy more outwards so it displays better too.
It took a while for me to understand, but I realized X,Y,Z is Left/Right, Up/Down, and Forwards/Backwards. Once you know that, getting the position of the head and adjusting the coordinates is pretty simple. You let roblox do the work for you with the position property, and adjust the coordinates at your will knowing what will happen.
Also I look at part properties to find what’s useful for positioning. It’s all about experience.