I'm currently working on a First-Person Compatibility script but I don't want it to have my player locked into first person so I'm trying to make it where all the needed changes are made by using the GetPropertyChangedSignal
, but it doesn't detect and I know that by using print("Changed")
but it does not print that. What am I doing wrong?
---###--------[[SCRIPT]]--------###---
local camera = workspace.CurrentCamera local player = game.Players.LocalPlayer local character = player.Character local humanoid = character.Humanoid player:GetPropertyChangedSignal("CameraMaxZoomDistance"):Connect(function() ---Used to detect a change but does not do that. print("Changed") ---Should print when CameraMaxZoom Changes. if player.CameraMaxZoomDistance == 0.5 then camera.FieldOfView = 100 humanoid.CameraOffset = Vector3.new(0, 0, -1) elseif player.CameraMaxZoomDistance >= 0.5 then camera.FieldOfView = 70 humanoid.CameraOffset = Vector3.new(0, 0, 0) end end)