I've been trying to make a third person shooter by having a part welded to the player and then making that the camera but the attach mode still allows the player to look up and down. How do I stop that?
✓ ANSWER ACCEPTED
Trying to make a camera that follows the player but doesn't allow them to look around?
1 answer
✓ Accepted answer
The following CameraTypes will prevent the player from shifting the camera's y angle using PageDown / PageUp:
Watch, Scriptable, Fixed
You could also try to change the action performed by using PageUp and PageDown with the UIS (UserInputService)
game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.PageUp or inputObject.KeyCode == Enum.KeyCode.PageDown then
--Event
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
