so i have my game in force first person mode and i want to make a special button so that people who want to have their camera not in first person can zoom in and out. (when they step on the part)
this is the script i make but it doesnt work. Im not a very good scripter.
function OnTouch(HIT)
wait(1)
Player.CameraMaxZoomDistance = 1
Player.OnTouch:connect(function(HIT)
wait(WaitTime)
local Torso = Character:FindFirstChild("Torso")
if Torso ~= nil then
Torso.CFrame = CFrame.new(Position)
end
end)
end)
please help me fix this as for i suck at scripting thanks!

5 comments
It does not let me zoom out when touched
change the zoom distance
i already did that
oh and also, i already have my game camera mode set to lock first person i dont know if that matters though
okay, then remember for position, the variable, make it either CFrame or remove the vector3.new