Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a seat lock you in first person?

Okay, I have been trying to think how to do this for a while but can't find a solution, basically a seat that locks YOU in first person and you cant turn your camera.

I am doing this for a realistic type of your point of view in real life, as it can be used for torture mechanisms that control epilepsy, etc.

Heres what I tried:

if player.Character.Humanoid.Sit then

player = game.Players.LocalPlayer
player.CameraMode = "LockFirstPerson"

1 comment

0

headstack, character and plr is an unknown global

2 answers

Try using a wait until function, or when you touch the seat go first person:

script.Parent.Touched:connect(function()
	game.StarterPlayer.CameraMode = "LockFirstPerson"
end)
character.Humanoid.Changed:Connect(function()
	if character.Humanoid.Seat == true then
		plr.CameraMode = 1
	else
		plr.CameraMode = 0
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.