Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do set the camera to the player without making them use right mouse to move in firstpersonmode?

Asked by
Teeter11 281 Moderation Voter
10 years ago

so im trying to make a players camera go to first person and u dont have to click the right mouse button and this is what i have and it makes the player press right mouse button to move around in first person

game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new( game.Players.LocalPlayer.Character.Head.CFrame.X, game.Players.LocalPlayer.Character.Head.CFrame.Y, game.Players.LocalPlayer.Character.Head.CFrame.Z)
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"

Answer this question