Cannot figure out how to make characters camera face the same direction as your character

Question, what would exactly be the point of changing the fov, also what do you mean by change the min and max zoom distance?, sorry I’m confused.

You can try changing the CameraMinZoomDistance option and CameraMaxZoomDistance so you understand what those options do, it basically sets a limit to how far and how short a players camera can move, 0.5 is the lowest and is 1st person, changing it to anything a little higher will not enable 1st person.

Oh yeah I know what that is now, the game will be first person only when it’s complete, I have it set in third person right now so It’s easier for me to test things out, I don’t know if that will work since the game will be locked in first person.

It’ll should work i believe, instead of setting the game to lock first person mode change both the Min and Max camera zoom distance to 0.5 and make a script change it to 1 or as much as you like when the tool is equipped, when the tool is unequipped just make the script change the Max and Min zoom distance back to 0.5.

For some reason it doesn’t force my camera back in first person, it forces it to third like it should by setting both min and max to 1, but when I unequip it only allows me to scroll back in first person and doesn’t force it.


Oh and here’s a video I forgot to add.

So the default settings on the camera for its (before you equip the tool) Min and Max should be 0 (or 0.5 since that’s the lowest) then when you equip the tool it changes it to 1 (or anything you like). Then when you unequip the tool it should reset your Min and Max back to 0 (or 0.5 like I said).

I will try and fix it, I think I know what I did wrong.

For some reason my max zoom distance stays at 1, when I unequip my min changes to 0.5 but my max is 1, which doesn’t make any sense.

I think I found a fix for that, Just change the mode to lock first person, and when you enter the camera again make it Classic.

uhmm, I guess? Pretty sure that’ll still change the the players body, but if you tried it and it works then nice.


It still doesn’t work :frowning: I have no clue what to do.

I think you should add

wait()

There is a 0.020 delay when you unequip in the function just incase you clicked on a camera when you unequip at the same time.

I’ll try and figure it out, thanks for trying to help me.

You could just try to remember the rotation of the camera when the tool is equipped, and when the tool is unequipped set the camera rotation to the previously remembered rotation

1 Like

I just thought of the exact same thing!, I’m going to attempt that.

If you do manage to solve the problem which I hope you do, if you decide to make the game public and finish it could you please paste the link to the game here? It sounds really interesting and looks like it’s very well made!

1 Like

Aw thank you!, I managed to fix the problem, I’m not quite sure when the game will be released but it’s a FNAF like free roam round based multiplayer game, I don’t have a link for it yet as the game is in very early stages!

1 Like

I fixed it basically it saves the x, y, z from PlayerCamera.CFrame:toEulerAnglesXYZ(), which there’s another empty Rotation variable, which saves it as CFrame.fromEulerAnglesXYZ(x,y,z), which the PlayerCamera.CFrame will = Rotation, every time you unequip the tablet.