This script doesnt work

game.Workspace.Ball.Position.Changed:Connect(function()
local zoom = game.Workspace.Ball.Position.Y * 2
game.Workspace.CurrentCamera = game.Workspace.Ball.Position + zoom
end)
Changed is not a valid member of Vector3 -- output

I have no idea why my camera doesnt follow the ball!
any help would work.

Position is a vector3 and changed event doesn’t work on vector3’s

Changed does not work on position, instead to detect when the part moved you could this:

local CurrentPosition = game.Workspace.Ball.Position
local Ball = game.Workspace.Ball

while wait() do
	if Ball.Position ~= CurrentPosition then -- Detect when ball has moved
		local zoom = game.Workspace.Ball.Position.Y * 2
		game.Workspace.CurrentCamera = game.Workspace.Ball.Position + zoom
		CurrentPosition = Ball.Position
	end
end
game.Workspace.Ball.Changed:Connect(function(Prop)
	if Prop == "Position" then
		local zoom = game.Workspace.Ball.Position.Y * 2
		game.Workspace.CurrentCamera = game.Workspace.Ball.Position + zoom
	end
end)