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

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

Asked by
notfenv 171
4 years ago

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"
0
headstack, character and plr is an unknown global notfenv 171 — 4y

2 answers

Log in to vote
0
Answered by
Rynappel 212 Moderation Voter
4 years ago

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)
Ad
Log in to vote
0
Answered by 4 years ago
character.Humanoid.Changed:Connect(function()
    if character.Humanoid.Seat == true then
        plr.CameraMode = 1
    else
        plr.CameraMode = 0
    end
end)

Answer this question