So i asked this question but it is still unsolved. ALSO, I ALREADY HAVE MY GAME IN LOCK FIRST PERSON MODE (just to say). I wanted to make a button that when you touch it, it lets you unlock first person mode and lets you zoom out. i made a script that didnt work and GreatNeil80 gave me another, but it doesnt work so here is the script he gave me.
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
Local Player = game:GetService("Players").LocalPlayer
local Torso = Player.Character:WaitForChild("Torso")
local ZoomDistance = 1
local Position = Vector3.new()-- put your position here in the () if it won't work take of Vector3.new
Player.CameraMaxZoomDistance = 1
if Torso ~= nil then
Torso.CFrame = CFrame.new(Position)
end
end
end
script.Parent.Touched:connect(onTouched)
please help

2 comments
thank you, it worked!
Good.