Hey! Dom here. I’m wondering, how can you make the players camera face a certain direction… But the players camera must be in first person. The players camera will only face towards something, not go directly near it. Any help?
You mean like so for instance that there is going to be an invisible part in the middle and when the character is going to move the camera is going to rotate to the part’s location while it’s in first person?
Hey, there is a spelling error on your topic. “camrea” is spelled wrong.
Hope you find you answer tho!
yes. Well he doesnt need to be in first person, his camrea faces the thing.
Its a easy thing if you think about it get a camera manipulation script then lock the players camera to first person.
I know how camera manipulation works. That isnt the solution
But couldnt make a brick facing what you want it to face with camera manipulation?? Because camera manipulation is in first person.
Interesting request! Here’s what to do:
- Make this code in a LocalScript! It won’t work in a script without the use of RemoteEvents
- Set the players CameraMode to “Scriptable”. The player’s camera will not be able to move. Use this code:
local Camera = workspace.CurrentCamera repeat wait() Camera.CameraType = Enum.CameraType.Scriptable until Camera.CameraType == Enum.CameraType.Scriptable
- Make some code to make a part appear next to the character’s head (set the Position property to char.Head.Position; Make sure to anchor it!)
- Set the Orientation of the part to where you want your characters head to face.
- Lastly, use this bit of code to make your character’s camera lock to the part:
local PartToLock = "PART YOU CREATED FACING CERTAIN DIRECTION HERE"
repeat wait() Camera.CFrame = PartToLock.CFrame until Camera.CFrame == PartToLock.CFrame
This is assuming you know how to make/manipulate parts and the difference between local and server side things. I hope this helps!
CFrame.new(Pos1.Position,Pos2.Position)
aka 2 Vector3 values like that
Pos1 will look to Pos2 ^^
This is not recommended nor is it a good idea. Everyone should avoid “busy waiting” as they aren’t really as useful.