This is a snippet from a larger script. My output is throwing an error of "PathWaypointAction cannot be assigned to " on line 31

local PathfindingService = game:GetService("PathfindingService")

function FollowPath(path, zombie)
    local waypoints = path:GetWaypoints()
    for i, waypoint in pairs(waypoints) do
	    waypoint.PathWaypointAction = Enum.PathWaypointAction.Jump
	    zombie.Zombie:MoveTo(waypoint.Position)
	    zombie.Zombie.MoveToFinished:Wait(1)
    end
end

while wait(0.5) do
    local player = game.Workspace[FindNearestPlayer(Zombie)]
    local pathParams = {
    AgentHeight = 5,
    AgentRadius = 2,
    AgentCanJump = true
    }
    local path = PathfindingService:CreatePath(pathParams)
    path:ComputeAsync(Zombie.HumanoidRootPart.Position, player.HumanoidRootPart.Position)
    FollowPath(path, Zombie)
end

SerpentineKing: Placed code into correct format