local TweenService = game:GetService("TweenService") local player = game:GetService("Players").LocalPlayer local zone = workspace:WaitForChild("ZoomZone") local original local camera, tween, insideBefore while zone.Parent do local current = workspace.CurrentCamera if current ~= camera then if tween then tween:Cancel() end camera, insideBefore = current, nil original = camera and camera.FieldOfView end local root = player.Character and player.Character:FindFirstChild("HumanoidRootPart") local point = root and zone.CFrame:PointToObjectSpace(root.Position) local half = zone.Size / 2 local inside = point ~= nil and math.abs(point.X) <= half.X and math.abs(point.Y) <= half.Y and math.abs(point.Z) <= half.Z if camera and inside ~= insideBefore then if tween then tween:Cancel() end tween = TweenService:Create(camera, TweenInfo.new(0.3), {FieldOfView = inside and 52 or original}) tween:Play() insideBefore = inside end task.wait(0.1) end if tween then tween:Cancel() end if camera then camera.FieldOfView = original end