This is my fourth time trying, and every time this has been marked as a duplicate for a question which has nothing to do with vehicle seats.
I already have a fully working first person lock, but vehicle seats disable it while you're sat in one. How can I get around this?
And don't link me to this, it has nothing to do with what I want: https://scriptinghelpers.org/questions/190/the-following-first-person-only-script-does-not-work-solved
am no good scripter but try this code
while.invehicleseat = true do lockfirstpersoncamera = true
am really sry if anything goes wrong but try this, this should do the trick, again, only trying to be helpeful.
What you need to do is create a script in the seat and put this code:
function onTouch(part) if part.Parent:findFirstChild("Humanoid") ~= nil then script["LocalScript1"].Disabled = false end if script.Parent:findFirstChild("SeatWeld") == nil then script["LocalScript2"].Disabled = false end end script.Parent.Touched:connect(onTouch)
Notice I have it find a localscript inside of the script. Make a localscript and name it "LocalScript1". You need to do that. Paste this into the LocalScript:
plr = game.Players:GetPlayerFromCharacter(script.Parent.Parent.Name) cam = game.Workspace.CurrentCamera cam.CameraType = "Custom" plr.CameraMode = Enum.CameraMode.LockFirstPerson script.Disabled = true
Since I have the script in the seat find a second localscript, make a second localscript into the main script and name it LocalScript2. It should look like this:
--[[ Seat Script LocalScript1 LocalScript2 --]]
Have this code in LocalScript2:
plr = game.Players:GetPlayerFromCharacter(script.Parent.Parent.Name) cam = game.Workspace.CurrentCamera cam.CameraType = "Custom" plr.CameraMode = Enum.CameraMode.Classic script.Disabled = true
It's a bit lengthy and not the best way to do it, but this will work.